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.