sebastienmonali | 2020-10-24 22:28:36 UTC | #1
As stated in the title, even though I include the Wrap Up code in the Group By, there is no way I can make it appear in the API response.
/api/v2/analytics/conversations/aggregates/query
{
"interval": "2020-01-01T05:00:00.000Z/2020-02-01T05:00:00.000Z",
"granularity": "P1D",
"groupBy": [
"outboundContactListId",
"userId",
"wrapUpCode"
],
"views": [],
"metrics": [
"nOutboundAttempted",
"nOutboundConnected"
]
}
Is this a known issue?
anon11147534 | 2020-10-27 16:42:24 UTC | #2
The only reason I can think of for that is that there is no wrapUpCode in the reponse for that query. You can try that query without specifying the wrapUpCode groupby to confirm no wrapUpCode is present in the response.
To get a larger reponse you can add more metrics to your query or query a longer interval.
sebastienmonali | 2020-10-29 00:04:01 UTC | #3
Hi Ronan, thanks for your response.
Do you have any idea why there wouldn't be any wrapUpCode in the response? I do have wrapUp values in the Conversation Details response..
For the same period, when I cross validate with the reports built in the PureCloud user interface, I do get values for wrapUpCode.
Apart from the outboundContactListId and the campaignId, the wrapUpCode is the main dimension our users look at.
Using the analytics Conversation Aggregate API, all other group by dimensions or metrics are present in the response when queried...
anon11147534 | 2020-10-29 15:25:37 UTC | #4
Sorry, my previous answer wasn't 100% correct.
wraupUpCode is only indexed for the metrics: tAcw, tHandle, tTalkComplete, and tHeldComplete so you will have to include some or all of them in your metrics filter.
sebastienmonali | 2020-10-29 15:45:29 UTC | #5
Perfect, it works! Thanks for your help!
system | 2020-11-28 15:45:31 UTC | #6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 9166