โ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 !!