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
Usage
SendEmailQuickActionDefaults Methods
The following are methods for SendEmailQuickActionDefaults.
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)
Signature
public void setTemplateId(Id templateId)
Parameters
- templateId
- Type: Id
- The template ID.
Return Value
Type: void