[Patched] /staff off-by-one result count

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
gavinhodge
Posts: 28
Joined: Mon Apr 27, 2020 1:27 am

[Patched] /staff off-by-one result count

Post by gavinhodge » Mon Aug 24, 2020 1:19 am

Hi there,

I sometimes see /staff?pageSize=n returning at most n-1 records. When I ask for 100 per page, I get 99 records in the response.

Strangely, smaller page sizes can return n. E.g. asking for 50 records returns 50.

I'm concerned that when asking for page 2, 3, etc. that records will be missing (i.e. the 100th record with a page size of 100).

I'm happy to share customer URL via DM if needed.

Gavin.
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: /staff off-by-one result count

Post by Muqeet » Mon Aug 24, 2020 1:25 am

Hello Gavin,

Please send me the customer URL in a PM, thanks.
Muqeet
API Developer | simPRO Software Group
Post Reply