For the managed package runtime, the Omniscript Email Action uses the Salesforce Email API to either send an email template to the email address of a User, Lead, or Contact or to send an email body defined in the action configuration to any email address.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
The Use Template checkbox determines whether using an email template or a defined email body.
-
If the Use Template checkbox is checked, the email will send a template to a user, lead, or contact.
-
Select Email Template: The ID of the email template that should be used.
-
Email Target Object ID: The object ID of the Contact, Lead, or User the email should be sent to.
-
What Id: If you specify a contact for the targetObjectId field, a What Id can be used to further ensure that merge fields in the template contain the correct data. See the Salesforce Email API documentation for more information.
-
Save as Activity: If this option is checked, the email is saved as an activity record on the recipient’s page in Salesforce.
-
Org Wide Email Address: Allows the email to be sent by an Salesforce organization-wide email address. For more information on organization-wide email addresses, see Organization-Wide Email Addresses,
-
Content Versions: Accepts the ID of a ContentDocument that is sent as an attachment with the Email Action.
-
-
If Use Template checkbox is unchecked, an email body defined in the action configuration can be sent to any email address.
-
TO: — An array of email addresses or object IDs of the contacts, leads, or users you’re sending the email to. The maximum number of toAddresses is 100.
-
CC: — An array of carbon copy (CC) addresses or object IDs of the contacts, leads, and users you’re sending the email to. The maximum number of ccAddresses is 25.
-
BCC: — An array of blind carbon copy (BCC) addresses or object IDs of the contacts, leads, and users you’re sending the email to. The maximum number of bccAddresses is 25.
-
Email Subject — The subject of the email.
-
Email Body — The body of the email.
-
Set HTML Body — Determines if the Email Body should be read as plain text or HTML.
-
-
Attachment List — Supports attachment IDs merged from Data JSON. For example, %DocGenId%. When the email is sent, the attachment will be added to the email.
- Email Action Properties (Managed Package)
For the managed package runtime, this page contains information about Email Action Properties.