I’m trying to map a JSON response from an external API into Architect variables using a Data Action, but the variables aren’t populating even though the request returns a 204.
Here’s the mapping config:
{
"responseMapping": {
"statusCode": "{{statusCode}}",
"body": "{{responseBody}}",
"headers": {
"Content-Type": "application/json"
}
},
"variables": {
"customerStatus": "{{responseBody.status}}",
"lastInteraction": "{{responseBody.lastInteraction}}"
}
}
The external endpoint logs show it’s sending back {"status": "active", "lastInteraction": "2023-10-27"}. Why is the Data Action failing to parse the body into the variables?