Hey folks,
I’ve got a Data Action set up to hit an internal REST endpoint for fetching user preferences. The HTTP call works fine-I see a 200 OK in the logs-but the mapped variables in Architect come back empty every time.
Here’s the mapping config I’m using in the Data Action JSON:
{
"url": "https://internal-api.example.com/v1/user/preferences",
"method": "GET",
"headers": {
"Authorization": "Bearer {{oauth_token}}"
},
"responseMapping": {
"theme": ".data.user.theme",
"fontSize": ".data.ui.fontSize"
}
}
The actual JSON response from the API looks like this:
{
"status": "success",
"data": {
"user": {
"theme": "dark",
"id": 12345
},
"ui": {
"fontSize": "large"
}
}
}
I’ve checked the path syntax and it seems right. I even tried logging the raw response in a debug action and it shows the full payload. Just the mapped vars are null.
Is there something tricky about nested object paths in the response mapping? Or maybe I’m missing a step to flatten the response first?
Any ideas on why the mapping isn’t picking up .data.user.theme?