Why is wrapUpCode coming back as null in my analytics detail query when the agents are definitely selecting them?
I’ve been debugging this for a couple of days now. The data exists in the UI, but the API response just has null for that field. I’m calling POST /api/v2/analytics/details/queues with a standard query body.
Here is the payload I’m sending:
{
"dateFrom": "2023-10-01T00:00:00.000Z",
"dateTo": "2023-10-02T00:00:00.000Z",
"view": "interaction",
"groupBy": ["wrapUpCode"],
"filter": {
"type": "and",
"clauses": [
{
"type": "equals",
"field": "queue.id",
"value": "my-queue-id"
}
]
},
"select": ["wrapUpCode", "duration"]
}
The response returns rows, but wrapUpCode is consistently null. I thought maybe it was a permissions issue, but I’m using a service account with full analytics read access.
Environment details:
- Genesys Cloud org in
us-east-1 - Python SDK version 6.2.1
- Service account has
analytics:report:readandconversation:read - Tried adding
wrapUpCode.displayNameto select, no change
Is this a known limitation with the detail view or am I missing a specific filter clause? The summary view seems to group by it fine, but I need the row-level data.