Legacy Dev Forum Posts

 View Only

Sign Up

Async conversation details pagination

  • 1.  Async conversation details pagination

    Posted 06-05-2025 19:20

    Darren_West | 2020-02-20 13:21:05 UTC | #1

    Hi, Is there a way to get the total number of results from an async request to /api/v2/analytics/conversations/details/jobs?

    Further to this, is there a way to set the number of results per page to this endpoint /api/v2/analytics/conversations/details/jobs?

    Regards


    tim.smith | 2020-02-21 21:14:53 UTC | #2

    See https://developer.mypurecloud.com/api/rest/v2/analytics/conversation_details_job.html#paging

    You iterate over the pages until there ~are no results~ is no cursor, then you have reached the end. You cannot know the number of results until you've reached the end.


    tim.smith | 2020-02-21 21:16:14 UTC | #3

    Just wanted to post to notify you that I updated my answer. You reach the end of standard analytics queries when the result set is empty. But with jobs, there won't be a cursor in the response when there are no more results that can be fetched.


    system | 2020-03-23 21:16:14 UTC | #4

    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: 7170