So far in our tutorial, we have shown how to create a REST Integration Point to get customer data, and how to build an Integration Point element in the Interaction Designer. The response received from the Integration Point is held in a custom variable called my_customer.
In order to obtain the values of the specific fields of the my customer object, these values need to be allocated into local simple variables. In this part of the tutorial, we will create three simple text variables, and allocate one field of the custom variable to each simple variable.
Note: The following procedure is simplified. For full details on allocating field values into simple variables, refer to using Custom Variables in Interactions.
To allocate object fields into simple variables:
- From the toolbar, click , and then click inside the Interaction Map.
The Allocator Definition dialog opens.
- At the bottom of the dialog, click Add Allocation.
Three dropdown lists appear.
- From the dropdown on the left, expand the User variables node, and select Add new. Then, click .
The Variable Definition dialog opens.
- From the Variable Definition dialog, create a new text variable called first name. Then, click OK to save the variable and close the popup.
- From the dropdown in the middle of the Allocator Definition dialog, select equals.
- From the dropdown on the right, select the first_name field of the my customer variable.
- Repeat Steps 3-6 to allocate the values of the last_name and phone_home fields.
The Allocator Definition dialog should now appear as follows:
- Click OK.
The Allocator Definition dialog closes.
- Draw a Connector between the Integration Point element and the Allocator element.