Hey everyone,
I’m running into a weird issue with the Genesys Cloud Analytics API. I’ve got a Python script pulling detail records for our support queue, but the wrapUpCode field is coming back as null even though I can see the codes in the UI.
Here’s the query I’m sending to /api/v2/analytics/interactions/details/query:
{
"dateFrom": "2023-10-01T00:00:00.000Z",
"dateTo": "2023-10-02T00:00:00.000Z",
"queryFilters": [
{
"type": "equal",
"field": "queue.id",
"value": "my-queue-id"
}
],
"groupings": [
{
"type": "field",
"field": "wrapUpCode.id"
}
]
}
The API returns a 200 OK, but every record has wrapUpCode: null. I tried adding wrapUpCode.name to the groupings too, no luck. I checked the raw interaction data via the Conversations API for one of these IDs, and the wrap-up code is definitely there.
Is this a known limitation with the Analytics API, or am I missing a parameter? I’ve been staring at the docs for hours.
Thanks!