Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Having issues in pagination when I try to get all list of topics by API call

    Posted 09-19-2024 02:44
    No replies, thread closed.

    Hello!

    When you call api/v2/speechandtextanalytics/topics/?pageSize=500 the pageCount also says 500. 

    Set the pageSize to 200 and pageCount will say 200.

    The pageCount value is returning whatever is returned for pageSize.

    Due to this constraint, we can't actually see all of our topics via the API, as pageSize is capped at 500. Since our total Topics = 530, you can't paginate to 2nd page to see the last 30.


    #API/Integrations
    #Reporting/Analytics

    ------------------------------
    Xavier Mateu
    SAGE GLOBAL SERVICES LIMITED
    ------------------------------


  • 2.  RE: Having issues in pagination when I try to get all list of topics by API call
    Best Answer

    Posted 09-19-2024 03:40
    No replies, thread closed.

    Hi Xavier,

    For this specific API, you paginate using the nexturi parameter to get to the next page. You can also extract the nextPage query parameter and use that as key value in the nextPage attribute:







    ------------------------------
    Niel Vicente
    DAMAC Properties Co. LLC
    ------------------------------



  • 3.  RE: Having issues in pagination when I try to get all list of topics by API call

    Posted 09-19-2024 03:56
    No replies, thread closed.

    Thanks Niel! It works!



    ------------------------------
    Xavier Mateu
    SAGE GLOBAL SERVICES LIMITED
    ------------------------------