mary8886 | 2020-07-15 20:42:33 UTC | #1
I'm using https://api.mypurecloud.com/api/v2/analytics/conversations/details/jobs with the following post body: { "interval": "2020-03-24T00:00:00.000Z/2020-03-26T00:00:00.000Z", "startOfDayIntervalMatching": true }
Is there a way to determine the count/number of results returned from the API?
anon11147534 | 2020-07-14 14:45:10 UTC | #2
Because this is an asynchronous API, it will return a jobId which can be used to query /api/v2/analytics/conversations/details/jobs/{jobId}/results That API will return a body with an array of conversations objects. You can use the count of conversations objects to determine the number of results. Keep in mind that the API implements paging, and in a different way to the /api/v2/analytics/conversations/details/query that I described on your previous post. If there's a cursor in the response, you'll have to retrieve the cursor from your results and use that to make your subsequent request for the next page of data (until you reach the end) adding the count of conversations objects to your total. Refer to this overview of the Conversations Detail Job for more info.
system | 2020-08-14 14:45:13 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 8279