06-28-2023 01:29 AM
Hello,
I would like to seek assistance regarding an issue I’m facing with a REST Get snap in my integration workflow. I am using the snap to retrieve candidate data from the Workable API. Here is a screenshot of the JSON response:
In the SnapLogic documentation it mention we can use pagination to retrieve candidates in batches. However, I’m encountering a problem where it does not progress to the next batch of candidates. Here is a screenshot of the “Has Next” and “Next URL” settings:
I have referred to the Workable API documentation, which can be found at the following link:
I would greatly appreciate any assistance or guidance on how to properly utilize the pagination feature in the REST Get snap to retrieve the next batch of candidates.
Thank you for your support.
Solved! Go to Solution.
06-28-2023 06:49 AM
Hey @acatlan ,
As per the workable document link you shared paging.next will contain the URL of the next result set.
You need to make below changes:
$.hasPath(“$entity.paging.next”)
In the Next URL, you need to use the URL that was provided in the $entiity.paging.next.
You may need to adjust the URL or the expression as per your need.
I hope this helps.
06-28-2023 02:14 AM
Hey @acatlan ,
In the Has next input box, you are passing the value as a string, remove the quotes.
Let us know if it works!
06-28-2023 02:23 AM
Hi @Soni37 ,
When I remove the quotes I get the following:
I can run it with the error but it doesn’t return the next batch.
I’ve also ran it without the quotes and without the “=” sign selected it doesn’t return an error but it doesn’t go to the next batch.
06-28-2023 06:49 AM
Hey @acatlan ,
As per the workable document link you shared paging.next will contain the URL of the next result set.
You need to make below changes:
$.hasPath(“$entity.paging.next”)
In the Next URL, you need to use the URL that was provided in the $entiity.paging.next.
You may need to adjust the URL or the expression as per your need.
I hope this helps.
06-28-2023 11:03 PM
Hi @Soni37 ,
The has next still gives me the error but it works, it retrieves the next batch of data. Thanks for the assistance !!