Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

RenderEmailTemplateError Class

Represents an error that the RenderEmailTemplateBodyResult object can contain.

Namespace

Messaging

RenderEmailTemplateError Methods

The following are methods for RenderEmailTemplateError.

getFieldName()

Returns the name of the merge field in the error.

Signature

public String getFieldName()

Return Value

Type: String

getMessage()

Returns a message describing the error.

Signature

public String getMessage()

Return Value

Type: String

getOffset()

Returns the offset within the supplied body text where the error was discovered. If the offset cannot be determined, -1 is returned.

Signature

public Integer getOffset()

Return Value

Type: Integer

getStatusCode()

Returns a Salesforce API status code.

Signature

public System.StatusCode getStatusCode()

Return Value

Type: System.StatusCode