Array/Object parameter in input contract for data action?

I have seen these forum posts (post1, post2), regarding how only key, value pairs are available as valid inputs to data actions, and that the request must be flattened, however, the purecloud data action configuration UI, seems to support being able to add objects, see attached image as an example:

Is it now possible to have nested objects/arrays in input contracts for data actions? If not, what is the recommended approach? Will they be available in the future?

Hi monisk,

Is it now possible to have nested objects/arrays in input contracts for data actions?

Data Actions still only support an input contract of a root object with key-value pairs. I will put in a ticket for this UI issue.

If not, what is the recommended approach?

Our approach for creating a complex input for a web service is to construct an object in the request template. So you would construct the "shape" of the input in the template and insert the variables wherever they belong. See more about request templates here:

Will they be available in the future?

We currently have no plans to handle more complex input. If the request template doesn't provide the flexibility you need you are welcome to submit an idea to https://purecloud.ideas.aha.io/ideas

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.