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 This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

To download a data pack of this example for Omnistudio for Managed Packages, click here.

To build this Integration Procedure:

  1. Create the Data Mapper Transform example described in Use Formulas in Omnistudio Data Mappers (Managed Package) 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:

    Property

    Value

    Data Mapper Interface

    DRFormula1

    Send JSON Path

    Input

  5. Drag a Response Action component into the Structure panel below the Data Mapper Transform Action and give it the following settings:

    Property

    Value

    Send JSON Path

    DataRaptorTransformAction1:TotalPrice

    Note that the Data Mapper Transform output is wrapped in a DataRaptorTransformAction1 node, from which only the TotalPrice sub-node is selected.

    Send JSON Node

    TotalPrice

  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.