Stuck on iterating over a JSON array returned from a custom Data Action in Genesys Cloud Architect. The external API returns a list of objects, but the Loop block seems to ignore the array structure.
Here is the response payload from the Data Action:
{
"status": "success",
"data": [
{ "id": "1", "name": "Widget A" },
{ "id": "2", "name": "Widget B" }
]
}
I am setting the Loop input to {{data.data}}. The loop count shows 0. If I set it to {{data}}, it iterates once with the whole object. I need to process each item in the data array individually.
I have checked the Genesys Docs but the examples only show flat lists or simple objects. No mention of nested arrays or how to reference the specific array property for iteration.
Is there a specific JSONPath syntax required in the Loop configuration? Or is this a limitation of the current Data Action integration?
My k6 load tests are blocked until this workflow logic is corrected. Any code snippets or configuration examples would be appreciated.