This page was last edited on November 15, 2016, at 22:22.
Comments or questions about this documentation? Contact us for support!
The Context Services blocks listed below support variables mapping.
In addition, the eServices block, Identify Contact, also supports variables mapping.
Each of the above blocks can return data as JSON objects, which can then be stored in callflow/workflow variables. When your application needs to access a property in the JSON object, you must use an Assign block to copy the property value into a variable where it can be accessed. Variable mapping allows you to specify the variables for certain properties of the resulting JSON object and, at run time, populate the variables with the property values.
When the returned data is an array of JSON objects, the variables are populated with the property values of the first item in the array. In cases where an application needs to iterate over each of the items in the array and also populate the variables with data from each item, use the Looping block with a reference to the block responsible for the retrieving the data.
To set up variable mapping for a block, use the Variables Mapping dialog box, which opens from the Variables Mapping block property in one of the Context Services blocks listed above.