In the information you provided:
Please remove the &startIndex=101 from the URL. So the first call will be starting from 0 and for the next page startindex will be added.
Also replace the ? with a & in $endpoint.fullUrl$ = $application.baseUrl$ + $endpoint.relativeUrl$ +“?startIndex=”+ $offset$ ( There is already a ? in the relative URL
So:
Relative URL = v1/Users?count=100
Paging step:
Hi @vishal_kejriwal1,
Thanks for your script, I have used your script but it is not working so I have updated some changes in screenshot but It is also not working, can you please provide me some other solution.
Hi @MuhammadMustafa, Thanks for quick response.
I have done changes as per your suggestion, now it is giving 122 record but it having 172 record below is my screenshot for sailpoint and postman.
I think that in your paging steps the “TERMINATE_IF” line should be above your $offset$ addition line, or else the condition will be satisfied before you make all your paging calls.
All webservices are slightly different when looking for the pagination.
For the above issue, I doubt that this issue is related to the pagination, as it gets more accounts than the page size (122 over 100). It looks like there is an issue with the identity attribute (multiple accounts with the same identity attribute).
To see what is response is from the web servers call, you can use the following code for the Web Services After Operation Rule:
If you can elaborate more about what you are doing and the nature of the APIs that would be great so we can able to help you because maybe your issue is different than @amanKsingh’s one.
However, if it’s the same, I can go with you and @amanKsingh on a quick call as previously offered to check with you guys, because again as mentioned by @Remold & I second that “All webservices are slightly different when looking for the pagination.
For the above issue, I doubt that this issue is related to the pagination”
Besides, above all replies, the native application should support pagination; then only that will work. Otherwise, it will not work. I have seen a couple of applications that do not support pagination, like Axero, etc. Please consult with the application team and get confirmation that this is going to allow us to do all these things.