Pagination / Loop Over Items -> Dynamically Change Page Number

Goal: Get first page of results → Split them → Loop Over Items until first page is done. Add +1 to the page number, requery for page 2 results, → Split → Loop Over Items, repeating until no more available records.

The workflow below goes through the first set just fine, but when it breaks outside the Loop and attempts to do page 2, it just triggers done in the next loop attempting and continually spams that without actually processing the loop.

What am I missing?

Hey @dustpickle

Problem:
The “Next Page” node has value: "=" which doesn’t actually increment the page number. It just keeps hitting page 1 over and over.and you don’t have a condition on when to stop to.

Fix:
Use the HTTP Request node’s built-in pagination instead. Turn on pagination, set it to update the “page” query param, and ditch the manual loop stuff. Check this