Could someone clarify why the success output keeps returning undefined when i map the response from a custom REST endpoint? I’ve got a Data Action configured to hit our internal scheduling service at https://api.internal/wfm/v1/agent-availability. The request fires fine, 200 OK comes back, but the architect flow just dumps a blank value into the variable.
Here’s the mapping block i’m using:
{
"outputPath": "$.result.availability",
"sourcePath": "$.response.body.data.status"
}
The raw response payload looks like this:
{
"statusCode": 200,
"body": {
"data": {
"status": "available",
"shiftId": "SH-9921"
}
}
}
JSONPath syntax looks solid. CXone’s Data Action engine is supposed to handle nested objects without explicit flattening, right? Or does the response parser strip the body wrapper automatically?
Tried switching to $.response.data.status and $.body.data.status. Nothing works. The debug logs just show output: undefined. It’s driving me crazy because the exact same endpoint works perfectly in Postman and our legacy integrations.
Maybe the timeout threshold is cutting it off before the parser finishes? Nah, the latency is under 400ms. Could be a schema validation mismatch on the CXone side. The JSONPath evaluator seems to choke on the nested structure. I’ve been staring at this for two hours.
The external service returns standard headers, so CORS isn’t blocking it either. Running this inside a bulk schedule generation loop makes the undefined values cascade into the next batch. Gotta fix the mapping before Friday’s payroll run.
Thanks for the help.