---
schema_version: "1"
id: d701514777be41c4441233061b8d522076c90198c12e7140c049c8ed758a2c2b
title: Email Action (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_email_action.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_email_action.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 5890823c30847b547df71dbb5b21637b8e283539bfea46165c26510b5a3f3539
description: 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.
products:
  - Omnistudio
release: "264"
---
# Email Action (Managed Package)

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.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

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](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_sendemail.htm) 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](https://help.salesforce.com/articleView?id=orgwide_email.htm&language=en_US),
    - **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)](https://help.salesforce.com/s/articleView?id=xcloud.os_email_action_properties.htm&release=264.0.0&type=5)**  
    For the managed package runtime, this page contains information about Email Action Properties.