cancel
Showing results for 
Search instead for 
Did you mean: 

Utilizing REST Get to Access Workable API

acatlan
New Contributor II

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:
Screenshot 2023-06-28 at 11.17.35

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:
Screenshot 2023-06-28 at 11.23.19

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.

1 ACCEPTED SOLUTION

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:

  1. Has next should be an expression or a key that returns true or false. Below expression will check if the path exists in the response.

$.hasPath(“$entity.paging.next”)
image

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.

View solution in original post

4 REPLIES 4

Abhishek_Soni37
Contributor

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!

Hi @Soni37 ,

When I remove the quotes I get the following:
Screenshot 2023-06-28 at 12.18.09
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.

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:

  1. Has next should be an expression or a key that returns true or false. Below expression will check if the path exists in the response.

$.hasPath(“$entity.paging.next”)
image

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.

Hi @Soni37 ,

The has next still gives me the error but it works, it retrieves the next batch of data. Thanks for the assistance !!