I am trying to retrieve ALL customers that have either of two tags using:
companies/0/customers/?pageSize=250&page=1&columns=ID,_href,Tags&Tags.Name=in(First Tag Name,Second Tag Name)
When I first call this with "page=1" it returns 228 results, and the headers contain "Result-Total" of 579.
I thought that the maximum number of results should be 250 when I specify "pageSize=250", as long as there are more than 250 results?
As well, when I update URL to "page=2" I get another 228 results, and with "page=3" I get a final 69 results.
This adds up to a total of 525 results, but the header keeps coming back with 579 total results.
1) why would I only get 228 results on the first two pages instead of 250
2) why is the "Result-Total" showing 579, but I can only retrieve 525?
Retrieving Customers Based on Tags
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.
-
SimproAPITeam
- Posts: 831
- Joined: Wed May 01, 2024 2:31 am
Re: Retrieving Customers Based on Tags
Hi stuart007,
I am having trouble replicating the issue described.
Can you share your Simpro build name/URL through our private message so we can investigate it further?
I am having trouble replicating the issue described.
Can you share your Simpro build name/URL through our private message so we can investigate it further?
Simpro API Team | Simpro Software Group
DEVELOPER CENTER