SendEmailQuickActionDefaults Class

Represents an Apex class that provides: the From address list; the original email’s email message ID, provided that the reply action was invoked on the email message feed item; and methods to specify related settings on templates. You can override these fields before the standard Email Action is rendered.

Namespace

QuickAction

Usage

Note

Note

You cannot instantiate this class. One can use the getters/setters when using it in the context of QuickAction.QuickActionDefaultsHandler.

SendEmailQuickActionDefaults Methods

The following are methods for SendEmailQuickActionDefaults.

getFromAddressList()

Returns a list of email addresses that are available in the From: address drop-down menu for the standard Email Action.

Signature

public List<String> getFromAddressList()

Return Value

Type: List<String>

getInReplyToId()

Returns the email message ID of the email to which the reply/reply all action has been invoked.

Signature

public Id getInReplyToId()

Return Value

Type: Id

setIgnoreTemplateSubject(useOriginalSubject)

Specifies whether the template subject should be ignored (true), thus using the original subject, or whether the template subject should replace the original subject (false).

Signature

public void setIgnoreTemplateSubject(Boolean useOriginalSubject)

Parameters

useOriginalSubject
Type: Boolean

Return Value

Type: void

setInsertTemplateBody(keepOriginalBodyContent)

Specifies whether the template body should be inserted above the original body content (true) or whether it should replace the entire content with the template body (false).

Signature

public void setInsertTemplateBody(Boolean keepOriginalBodyContent)

Parameters

keepOriginalBodyContent
Type: Boolean

Return Value

Type: void

setTemplateId(templateId)

Sets the email template ID to load into the email body.

Signature

public void setTemplateId(Id templateId)

Parameters

templateId
Type: Id
The template ID.

Return Value

Type: void