Hey there - I’m currently struggling with making this pagination automation work
Here’s an image of the full automation.
To give context - here’s what this does:
- Fetch a webhook
- Get Leads from a specific category (There’s a limit of 50 leads)
- Get the array of leads
- If the array of leads is greater than 50 go to the pagination part, otherwise output result
- Get array of leads + page ID
- Set Array length to 50 (Limit) → RUN scope
- Set Page ID to current page ID → RUN scope
- Generate 10 numbers for looping
- Loop over everything
- Get Page ID → RUN scope
- Get Lead Number → RUN scope
- HTTP Request (Paginated Request)
- Get Page ID & Lead Number
- Add Leads
- Set Leads to new number → RUN scope
- Set Page ID to new number → RUN scope
- If lead length is < 50 → Return response, otherwise run the loop again
In the current system it seems like the Page ID & Lead Number don’t update.
How can I update those ?
Thanks for the help in advance!