OhSnap
4 years agoNew Contributor II
Paginated REST GET calls against Monday.com
Wondering if anyone has done paginated REST GET calls to Monday.com? I’m trying to figure out how to structure the “Have Next” and “Next URL” parameters to the snap.
The query in Monday looks like ...
- 4 years ago
Thanks aleung, that was super helpful. Finally got it solved.
To anyone trying to debug their paging REST GET calls, here’s what I did.
Connect your REST GET snap to a mapper and create a single call out to your fetching API.
Let the validation of these two snaps fill in the object definition on the mapper and then open the mapper. I selected and dragged over the encompassing array for the items being populated from the GET call. The length of this returned array then became my condition for Has Next:
(ie. if it was able to fetch records on this call, then assume it has more to fetch.)
Paging to the next page, was accomplished with this code inclusion:
Hope this helps!