---
schema_version: "1"
id: 0cf1360850ea2617e5e0d71b16fa619aef86fc17d3f6c65f79817c0a08f553a3
title: Create an Omnistudio Data Mapper Transform Action Example (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_a_dataraptor_transform_action_example.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_dataraptor_transform_action_example.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 19e5e255d94395d6a7ad2e9f1adb085fce0a7f9bc015b1d44e80ec3a1884ff7b
description: For the managed package runtime, an Integration Procedure calls a Data Mapper Transform that calculates a sum and returns it.
products:
  - Omnistudio
release: "264"
---
# Create an Omnistudio Data Mapper Transform Action Example (Managed Package)

For the managed package runtime, an Integration Procedure calls a Data Mapper Transform that calculates a sum and returns it.

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

To download a data pack of this example for Omnistudio for Managed Packages, click [here](https://volt.my.salesforce.com/sfc/p/o0000000IKm8/a/3m0000005uoH/5NVpgi5.h5Wb4SYRJI5QjY9VOmd_EENxXy1wBpexziQ).

To build this Integration Procedure:

1. Create the Data Mapper Transform example described in [Use Formulas in Omnistudio Data Mappers (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_use_formulas_in_dataraptors.htm&release=264.0.0&type=5 "For the managed package runtime, to add data to the output of a Data Mapper, define formulas. Several types of Data Mapper (Extract, Transform, and Load) support formulas. When you define a formula, you map its output to the output JSON (for extracts and transforms) or Salesforce object field (for loads).") and name it `DRFormula1`.
2. From the Omnistudio Integration Procedures tab, click **New**.
3. Provide an **Integration Procedure Name**, a **Type**, and a **SubType**, and click **Save**.
4. Drag a Data Mapper Transform Action component into the Structure panel and give it the following settings:
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col>
              <col>
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d260607e113">
                  <p style="margin-bottom:0;">Property</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d260607e119">
                  <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="d260607e113 ">
                  <p style="margin-bottom:0;">Data Mapper Interface</p>
                </td>

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

              </tr>
              <tr class="">
                <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d260607e113 ">
                  <p style="margin-bottom:0;">Send JSON Path</p>
                </td>

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

              </tr>
            </tbody>
          </table>
5. Drag a Response Action component into the Structure panel below the Data Mapper Transform Action and give it the following settings:
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col>
              <col>
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d260607e187">
                  <p style="margin-bottom:0;">Property</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d260607e193">
                  <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="d260607e187 ">
                  <p style="margin-bottom:0;">Send JSON Path</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d260607e193 ">
                  <p>
                    <code>DataRaptorTransformAction1:TotalPrice</code>
                  </p>
                  <p style="margin-bottom:0;">Note that the Data Mapper Transform output is wrapped in a <code>DataRaptorTransformAction1</code> node, from which only the <code>TotalPrice</code> sub-node is selected.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d260607e187 ">
                  <p style="margin-bottom:0;">Send JSON Node</p>
                </td>

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

              </tr>
            </tbody>
          </table>
6. Go to the Preview tab and click **Edit as JSON**.
7. Paste the following input into the Input Parameters panel:
    
    ```
    {
        "Input": {
            "CustomerName": "Bob Smith",
            "Products": [
                {
                    "Name": "iPhone",
                    "Price": 600
                },
                {
                    "Name": "iPhone Case",
                    "Price": 30
                },
                {
                    "Name": "Ear Buds",
                    "Price": 200
                }
            ]
        }
    }
    ```
    
    Note that this is the same as the input for the Data Mapper Transform except that the entire structure is wrapped in an `Input` node, which matches the **Send JSON Path** value of the Data Mapper Transform Action.
8. Click **Execute**. The output should look like this:
    
    ```
    {
      "TotalPrice": 830
    }
    ```
9. In the Input pane, change one or more of the prices, then click **Execute** again.
    
    Note how the `TotalPrice` value changes.