Why is the success output coming back as undefined when the JSON path looks right?
We’ve got a REST data action hitting a custom endpoint and the response payload is coming through fine on the wire. Just the mapping part is breaking.
- Node.js 18 runtime handling the callback
- Genesys Cloud Data Action type: REST
- Response content-type: application/json
- Mapping path: $.data.items[0].id
Here’s the snippet from the data action config. Tried switching to dot notation like $.data.items.0.id but that didn’t help either. The request succeeds with 200 OK, but when we check the output in the flow, it’s just undefined.
{
"outputMapping": {
"success": {
"id": "$.data.items[0].id"
}
}
}
The response body definitely has the array structure. Maybe the SDK is stripping the wrapper object before the mapper sees it? Or is there a specific syntax for arrays in the Data Action engine that isn’t documented