We are building a reporting dashboard for our custom agent desktop extension. The goal is to show agents their wrap-up codes for the last 24 hours to help with QA tracking. We are using the genesyscloud-node-sdk to fetch conversation details.
The query works fine for most fields, but wrapUpCode is always null in the response body, even for calls that clearly have a wrap-up code assigned in the UI. Here is the request body we are sending to POST /api/v2/analytics/conversations/details/query:
{
"dateFrom": "2023-10-27T00:00:00.000Z",
"dateTo": "2023-10-28T00:00:00.000Z",
"size": 20,
"select": ["wrapUpCode", "id", "type"],
"where": "type:'voice'"
}
The response returns the conversation ID and type correctly. But wrapUpCode is missing or null. We tried adding wrapUpCode.name to the select array, but that did not change anything.
Is this a known limitation of the detail query API? Or are we missing a specific filter condition? The documentation says wrapUpCode is available for voice interactions. We are using version 3 of the SDK. Any help would be appreciated.