For the managed package runtime, an Integration Procedure calls a Data Mapper Transform that calculates a sum and returns it.
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.
-
Create the Data Mapper Transform example described in Use Formulas in Omnistudio Data Mappers (Managed Package) and name it
DRFormula1. - From the Omnistudio Integration Procedures tab, click New.
- Provide an Integration Procedure Name, a Type, and a SubType, and click Save.
-
Drag a Data Mapper Transform Action component into the Structure panel and give it the following settings:
Property
Value
Data Mapper Interface
DRFormula1Send JSON Path
Input -
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:TotalPriceNote that the Data Mapper Transform output is wrapped in a
DataRaptorTransformAction1node, from which only theTotalPricesub-node is selected.Send JSON Node
TotalPrice - Go to the Preview tab and click Edit as JSON.
-
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
Inputnode, which matches the Send JSON Path value of the Data Mapper Transform Action. -
Click Execute. The output should look like this:
{ "TotalPrice": 830 } -
In the Input pane, change one or more of the prices, then click Execute again.
Note how the
TotalPricevalue changes.