Architect Data Action JSON mapping failing on nested array

Hey folks,

I’m trying to build a Data Action that calls an external REST API and maps the JSON response to Architect variables. The API returns a nested structure, and I can’t seem to get the path right for the mapping.

Here’s the response payload:

{
 "status": "success",
 "data": {
 "customer": {
 "id": "12345",
 "name": "John Doe"
 }
 }
}

I want to map id to a variable called crm_id and name to customer_name. I’ve tried using data.customer.id in the mapping field, but the Data Action fails with a validation error saying the path is invalid.

The API call itself works fine when I test it in Postman. It’s just the mapping step that’s throwing me off. I’ve checked the docs, but the examples are pretty basic.

Is there a specific syntax I’m missing for nested objects? Or is there a limit to how deep the path can go?

Thanks.

Try flattening the path first. Architect’s mapper chokes on deep nesting sometimes. Set a temporary variable to {{apiResponse.data.customer}} then map {{tempVar.id}} to crm_id. Works better than drilling down directly. Also check if your action scope is set to session or interaction.