I am trying to read documents for REST GET snap and for specific ID i am having 918 records and I am only able to access starting 100 record and am not able to traverse next records.
Hi chmurray88! Am I understanding this correctly that you have an API that is giving you a page of responses, but you don't have any count, limit, start, or similar variables to work with? Are you able to cleanse the data content and show what your response looks like?
Hello rahulkalyanwat, what happens with the 'Has next' and 'Next URL' that you have configured? Does it give you an error, or just never runs again? The response screenshot with "startCount" = 101 makes me think you did fetch a second page of results so I just want to clarify that.
Next URL
I would also ask if you're using the 'REST Get' or 'HTTP Client' Snap? The latter might make this a bit easier for the 'Next URL'. The screenshot below shows a pagination setup I use against SnapLogic's API and you can see I don't have to work with the 'Next URL' at all since SnapLogic can piece it together for me - all that was needed in this situation was to override the 'offset' parameter. Based on what I can see from your override URL "skip" would be the only parameter to override and you could use a value like '$entity.startCount + $entity.limit'.
Has next
For the 'Has next' you could also use this expression so all the variables are based on values from the response instead of trying to use a static '100' and the internal 'snap.out.totalCount':
Hello rahulkalyanwat! Assuming that 'skip' is the correct query parameter and the rest of the URL is accurate, you could replace the expression at the end:
(snap.out.totalCount + 1).toString()
with this:
($entity.startCount + $entity.limit)
One thing I can't see in the previous screenshots though is your initial 'startCount' value. From the response in the original post it looks like 101 already. You may need to double-check that since every API can be different, though typically they would start at record 0 or 1, meaning the first page would be 0-99 or 1-100, next page would be 100-199 or 101-200
RogerSramkoski I tried with HAS NEXT and NEXT URL but it's not working for me and attached the complete REST GET SNAP screenshot below and API first page skip = 0 and startcount=1 each page has 1 to 100 records.
and It's working for me partially. when I am validating the pipeline I see a total count of 921 and a limit of 100. first-page startcount= 1 and the limit 100 for the next page start count should be 101 but it starts from 201 and attached a screenshot for the same.