RenderEmailTemplateBodyResult Class

Contains the results for rendering email templates.

Messaging

The following are methods for RenderEmailTemplateBodyResult.

  • getErrors()

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

  • getMergedBody()

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

  • getSuccess()

    Indicates whether the operation was successful.

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

public List<Messaging.RenderEmailTemplateError> getErrors()

Type: List<Messaging.RenderEmailTemplateError>

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

public String getMergedBody()

Type: String

Indicates whether the operation was successful.

public Boolean getSuccess()

Type: Boolean