We’ve been pulling conversation details via the Genesys Cloud .NET SDK for a reporting integration. Everything works fine except the wrapUpCode field is always null in the response. The documentation for GetAnalyticsConversationsDetails implies this field should be populated if the conversation has been wrapped up.
Here’s the query configuration I’m using:
var query = new AnalyticsQuerySettings
{
View = "conversation-details",
Select = new List<string> { "id", "wrapUpCode", "startTime", "endTime" },
Where = new List<string> { "endTime > 2023-10-01T00:00:00.000Z" },
GroupBy = new List<string> { "wrapUpCode" },
TimeGroup = "hour"
};
var result = await client.AnalyticsApi.PostAnalyticsConversationsDetails(query);
The response payload looks like this:
{
"entities": [
{
"id": "conv-12345",
"wrapUpCode": null,
"startTime": "2023-10-01T10:00:00.000Z",
"endTime": "2023-10-01T10:05:00.000Z"
}
]
}
I’ve verified the conversation in the UI and the wrap-up code is definitely set. I even tried adding wrapUpCode.id to the select list, but it’s still null. The docs state: “The wrapUpCode object is returned if a wrap-up code was selected.” It doesn’t mention any specific conditions for it being null other than no wrap-up being selected.
Is this a known limitation with the detail view? Or am I missing a specific scope or query parameter? We need this data for our internal CRM sync. Any ideas?