How do you list all records?

Featured

Comments

2 comments

  • Official comment
    Avatar
    Bence Orlai

    Ian

     

    there is a new feature on the /search endpoints which is not yet reflected in the documentation, but was implemented to address this issue.

    when you run a search request, the response header (and NOT the body of the response!) includes a custom field called 'X-Pw-Total '. the value of this field is the total number of entities in the search results. if you divide this number by your page size then you get the total number of pages you have to iterate thru.

    i hope this helps

  • Avatar
    Ian Weatherhogg

    Would be good to be able to get total number of pages, so we can get the actual pages asynchronously, which would make it much faster for us.

Please sign in to leave a comment.