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.
You cannot instantiate this class. One can use the getters/setters when using it in the context of QuickAction.QuickActionDefaultsHandler.
The following are methods for SendEmailQuickActionDefaults.
-
Returns a list of email addresses that are available in the From: address drop-down menu for the standard Email Action.
-
Returns the email message ID of the email to which the reply/reply all action has been invoked.
-
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).
-
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).
-
Sets the email template ID to load into the email body.
Returns a list of email addresses that are available in the From: address drop-down menu for the standard Email Action.
public List<String> getFromAddressList()
Type: List<String>
Returns the email message ID of the email to which the reply/reply all action has been invoked.
public Id getInReplyToId()
Type: Id
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).
public void setIgnoreTemplateSubject(Boolean useOriginalSubject)
-
useOriginalSubject:
Type: Boolean
Type: void
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).
public void setInsertTemplateBody(Boolean keepOriginalBodyContent)
-
keepOriginalBodyContent:
Type: Boolean
Type: void
Sets the email template ID to load into the email body.
public void setTemplateId(Id templateId)
-
templateId:
Type: Id
The template ID.
Type: void