Contains status and error information for a request processed by the renderEmailTemplate() call, including individual results of rendered email templates.
Contains status and error information for each template body that renderEmailTemplate() processed in a request, including merged body text of templates.
errors
Error[]
Contains one or more errors that occurred when renderEmailTemplate() rendered a request.
success
boolean
Indicates whether a request was successfully processed (true) or not (false).
RenderEmailTemplateBodyResult
Contains status and error information for each template body that renderEmailTemplate() processed in a request, including merged body text of templates.
Contains one or more errors that are associated with a template body that renderEmailTemplate() processed.
mergedBody
string
The text of the template body with the merge fields replaced with their corresponding values from Salesforce objects. The whatId and whoId fields on the request reference the Salesforce objects to use. The mergedBody field is populated only when the rendering of the template was successful (success is equal to true). If success is equal to false, mergedBody is null.
success
boolean
Indicates whether a template body was successfully rendered (true) or not (false).
The merge field that affected the error condition.
message
string
Error message text.
offset
int
The offset in the template body text of the merge field that caused the error. The offset is calculated as the number of characters from the start of the body text. The offset is -1 if it can’t be determined because of insufficient contextual information.