I’m trying to map a JSON response from an external REST API to an Architect variable using a Data Action. The API call works fine in Postman, returning a 200 OK with the expected payload. In Architect, the Data Action completes successfully (status code 200), but the target variable remains null after execution.
Here’s the mapping configuration:
{
"responseMapping": {
"customerName": "$.data.name"
}
}
The JSON response from the API looks like this:
{
"data": {
"name": "John Doe",
"id": "12345"
}
}
I’ve verified the JSON path is correct. I’ve also tried using $.name directly in case the wrapper object is causing issues, but that didn’t help either. The Data Action logs show the response body is received correctly, so the issue seems to be in the mapping step.
Things I’ve tried:
- Checked for typos in the variable name
- Verified the JSON path syntax
- Tested with a simpler JSON structure
- Ensured the variable type matches the expected output (String)
Is there a known issue with nested JSON mapping in Data Actions? Or am I missing something obvious here? Any help would be appreciated.