---
schema_version: "1"
id: 1fa1cb99f6c0b33b1c397ec6465db21dc62cb1737d67f6fdf5ef5775d9dce69d
title: Create an Email Action Example with Specified Fields (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_create_an_email_action_example_with_specified_fields.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_create_an_email_action_example_with_specified_fields.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6fb1286a7cc4d7354297dfb9d998a33990440c46aaf30440fba4c2dab6982e77
description: For the managed package runtime, in this example, an Integration Procedure accepts email, ccemail, subject, and message input parameters and uses them to compose and send an email.
products:
  - Omnistudio
release: "264"
---
# Create an Email Action Example with Specified Fields (Managed Package)

For the managed package runtime, in this example, an Integration Procedure accepts `email`, `ccemail`, `subject`, and `message` input parameters and uses them to compose and send an email.

![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).

You can download a [data pack example](https://volt.my.salesforce.com/sfc/p/o0000000IKm8/a/3m0000005uTU/5edX9qIZM7ZUjOqIaq73tG8BDpwi3m65uYP_3pJselc) for Omnistudio for Managed Packages.

To build this Integration Procedure:

1. From the Integration Procedures tab, click **New**.
2. Provide a unique name, type, and subtype for your Integration Procedure, and click **Save**.
3. Drag an Email Action component into the Structure panel.
4. Edit the Email Action:
    1. Deselect **Use Template**.
    2. Add these properties:
        
        <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
                <colgroup>
                  <col style="width:33.33333333333333%">
                  <col style="width:66.66666666666666%">
                </colgroup>
                <thead class="slds-text-title_caps ">
                  <tr class="">
                    <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d195349e121">
                      <p style="margin-bottom:0;">Property</p>
                    </th>
                    <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d195349e127">
                      <p style="margin-bottom:0;">Value</p>
                    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr class="">
                    <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e121 ">
                      <p style="margin-bottom:0;">TO EMAIL ADDRESS LIST</p>
                    </td>

                    <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e127 ">
                      <p style="margin-bottom:0;">Click <strong class="uicontrol">Add Recipient</strong> and enter
                        <code>%email%</code>.
                      </p>
                    </td>

                  </tr>
                  <tr class="">
                    <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e121 ">
                      <p style="margin-bottom:0;">CC EMAIL ADDRESS LIST</p>
                    </td>

                    <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e127 ">
                      <p>Click <strong class="uicontrol">Add Recipient</strong> and enter
                        <code>%ccemail1%</code>.
                      </p>
                      <p style="margin-bottom:0;">Click <strong class="uicontrol">Add Recipient</strong> again and
                        enter <code>%ccemail2%</code>.</p>
                    </td>

                  </tr>
                  <tr class="">
                    <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e121 ">
                      <p style="margin-bottom:0;">Email Subject</p>
                    </td>

                    <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e127 ">
                      <p style="margin-bottom:0;">Enter <code>%subject%</code>.</p>
                    </td>

                  </tr>
                  <tr class="">
                    <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e121 ">
                      <p style="margin-bottom:0;">Email Body</p>
                    </td>

                    <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e127 ">
                      <p style="margin-bottom:0;">Enter <code>%message%</code>.</p>
                    </td>

                  </tr>
                </tbody>
              </table>
5. To enter values for the input parameters, open the Preview tab.
    
    Under Input Parameters in the Preview tab, toggle between **Edit as Params** and **Edit as JSON** to specify the input parameters either in fields or as JSON.
    
    - To use **Edit as Params**, click **Add New Key/Value Pair** five times and add these input parameters in the Key and Value fields:
        
        <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
              <colgroup>
                <col style="width:33.33333333333333%">
                <col style="width:66.66666666666666%">
              </colgroup>
              <thead class="slds-text-title_caps ">
                <tr class="">
                  <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d195349e270">
                    <p style="margin-bottom:0;">Key</p>
                  </th>
                  <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d195349e276">
                    <p style="margin-bottom:0;">Value</p>
                  </th>
                </tr>
              </thead>
              <tbody>
                <tr class="">
                  <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e270 ">
                    <p style="margin-bottom:0;">email</p>
                  </td>

                  <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e276 ">
                    <p style="margin-bottom:0;">
                      <var>your_email_address</var>
                    </p>
                  </td>

                </tr>
                <tr class="">
                  <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e270 ">
                    <p style="margin-bottom:0;">ccemail1</p>
                  </td>

                  <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e276 ">
                    <p style="margin-bottom:0;">
                      <var>first_ccemail_address</var>
                    </p>
                  </td>

                </tr>
                <tr class="">
                  <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e270 ">
                    <p style="margin-bottom:0;">ccemail2</p>
                  </td>

                  <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e276 ">
                    <p style="margin-bottom:0;">
                      <var>second_ccemail_address</var>
                    </p>
                  </td>

                </tr>
                <tr class="">
                  <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e270 ">
                    <p style="margin-bottom:0;">subject</p>
                  </td>

                  <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e276 ">
                    <p style="margin-bottom:0;">Test Email</p>
                  </td>

                </tr>
                <tr class="">
                  <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e270 ">
                    <p style="margin-bottom:0;">message</p>
                  </td>

                  <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d195349e276 ">
                    <p style="margin-bottom:0;">This email is a test.</p>
                  </td>

                </tr>
              </tbody>
            </table>
    - To use **Edit as JSON**, add these input parameters as key-value pairs in a JSON object:
        
        ```
        {
          "email": "your_email_address",
          "ccemail1": "first_ccemail_address",
          "ccemail2": "second_ccemail_address",
          "subject": "Test Email",
          "message": "This email is a test."
        }
        ```
6. Click **Execute**. In a few minutes, the test email is sent from your org to the specified recipients.