Forum Discussion
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':
$entity.startCount + $entity.limit >= $entity.totalCount
Hi RogerSramkoski I am Using REST Get snap and Copied Screenshot of Second Page and can you please help me to calculate nexturl as well.
Page 1 response:
REST GET Snap HAS NEXT and NEXT URL: