RenderEmailTemplateBodyResult Class
Contains the results for rendering email templates.
The following are methods for RenderEmailTemplateBodyResult.
-
If an error occurred during the
renderEmailTemplatemethod, aRenderEmailTemplateErrorobject is returned. -
Returns the rendered body text with merge field references replaced with the corresponding record data.
-
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