Hey everyone,
I’m stuck on a routing flow. I need to pull customer details from our CRM before the call hits the queue. I’m using the GetExternalContactAction data action in Genesys Cloud Architect.
The endpoint is working fine in Postman. I can hit https://crm.example.com/api/contacts with the phone number and get a 200 OK with the JSON payload. But inside Architect, the output object is always empty. No error, just {}.
Here is the configuration I have set up in the Data Action:
{
"httpMethod": "GET",
"url": "https://crm.example.com/api/contacts?phone=${contact.phoneNumber}",
"headers": {
"Authorization": "Bearer ${system.token}"
}
}
The contact.phoneNumber variable is populated correctly earlier in the flow. I verified this by logging it to a text file. The format is +1234567890. The CRM expects exactly this format.
When I add a log node after the data action, the output object contactDetails has no keys. It’s like the HTTP request isn’t happening or the response isn’t being parsed.
I tried changing the httpMethod to POST with a body, but that didn’t help. I also tried using an IP address instead of the hostname, but same result.
Has anyone seen this behavior? Is there a specific way to handle the response body in this action? The docs say it returns the JSON body, but I’m getting nothing.
Thanks.