Hey folks,
Running into a weird issue with a Data Action in Architect. We’re trying to pull profile data from our NICE CXone/Cognigy integration using the GetExternalContactAction. The endpoint itself is fine, I can hit it directly from Postman and get a 200 OK with the JSON payload.
The problem is that the Data Action keeps failing silently or timing out when it tries to parse the response. The error log just says Invalid JSON response or sometimes Null reference exception depending on how I tweak the mapping.
Here’s the JSON we’re getting back from the /api/v1/contacts/{contactId}/profile endpoint:
{
"contactId": "c-12345",
"profile": {
"firstName": "John",
"lastName": "Doe",
"segments": ["VIP", "HighValue"]
},
"meta": {
"timestamp": "2023-10-27T14:00:00Z"
}
}
In the Data Action mapping, I’m trying to map profile.firstName to an interaction attribute cust_first_name. I’ve tried using the dot notation response.body.profile.firstName and also tried accessing it as an array index response.body.profile['firstName'] but neither works.
Is there something specific about how Genesys Cloud handles nested objects in these external calls? Or maybe the meta object is throwing off the parser? We’ve got the timeout set to 5000ms which should be plenty.
Any ideas on what I’m missing here?