This page was last edited on May 30, 2021, at 19:02.
Comments or questions about this documentation? Contact us for support!
To work with User Data in Composer, you can use:
For routing applications, you can use:
Hints
var input = new Object();
input.xyz = InputValue1; // Specify a value for the key ‘xyz’.
input[‘my-key-nname’] = ‘value’; // Use this notation if the key or property name has a hyphen in it. Note that‘my-key-nname’has hyphens.
_genesys.ixn.setuData(input);
When working with the Update Contact and Render Message blocks (which map to Universal Contact Server services), certain properties must exist in the interaction User Data.
For the Update Contact block, ContactId must exist.
For the Render Message block, ContactId (if some contact-related Field Codes (as described in the eServices 8.1 User's Guide) are used in the text to render). Also InteractionId (if some interaction-related Field Codes are used in the text to render)and OwnerEmployeeId (if some agent-related Field Codes are used in the text to render).
As is the case with IRD, these properties are not set in the blocks themselves. Instead, the properties are assumed to be put in the interaction's User Data by some other block earlier in the workflow, such as the Identify Customer block or Create Interaction block with the Update User Data property set to true. In case no other block does this, the User Data block may be used for this purpose.
If these properties are not available, an explicit UCS error message (missing parameter) shows in the Orchestration Server log.
To retrieve multiple KV pairs in a user data object:
The values can be accessed from Composer using:
Also see Route Request block and Interaction Data.