RenderEmailTemplateBodyResult Class

Contains the results for rendering email templates.

Namespace

Messaging

RenderEmailTemplateBodyResult Methods

The following are methods for RenderEmailTemplateBodyResult.

getErrors()

If an error occurred during the renderEmailTemplate method, a RenderEmailTemplateError object is returned.

Signature

public List<Messaging.RenderEmailTemplateError> getErrors()

Return Value

Type: List<Messaging.RenderEmailTemplateError>

getMergedBody()

Returns the rendered body text with merge field references replaced with the corresponding record data.

Signature

public String getMergedBody()

Return Value

Type: String

getSuccess()

Indicates whether the operation was successful.

Signature

public Boolean getSuccess()

Return Value

Type: Boolean