Legacy Dev Forum Posts

 View Only

Sign Up

Paging syntax for UserDetailsQuery

  • 1.  Paging syntax for UserDetailsQuery

    Posted 06-05-2025 18:08

    Mark_Fowle | 2017-08-16 19:48:21 UTC | #1

    The pagenumber and pagesize configuration seems to be ignored. interval and order work as expected. Paging works as expected with the online query builder but not with the python api

    Is this an implementation, documentation or PEBKAC issue?

    body = PureCloudPlatformClientV2.UserDetailsQuery() body.interval = '2017-08-08T04:00:00/2017-08-12T04:00:00' body.pagesize = 25 body.pagenumber = 1 body.order = "desc" api = PureCloudPlatformClientV2.AnalyticsApi() result = api.postanalyticsusersdetailsquery(body)


    tim.smith | 2017-08-16 21:08:38 UTC | #2

    Take a look at the docs for the UserDetailsQuery model. There is a property paging of type PagingSpec that has properties for page_size and page_number. I think your code should look something like this:

    body.paging = PureCloudPlatformClientV2.PagingSpec()
    body.paging.page_size = 25
    body.paging.page_number = 1

    Give this a try and let me know if this works for you. If not, I can dig deeper tomorrow.


    Mark_Fowle | 2017-08-17 14:24:40 UTC | #3

    This works thank you.


    system | 2017-09-17 14:24:52 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: 1690