Creating a workflow that is iterating

Creating a workflow that is iterating through a list with pagination. The pagination operation works with a next_cursor so that you know the next page to go and fetch. My question: Can I capture the next_cursor in a let like below to reference in each subsequent step?
let next_cursor;
do {
next_cursor = await step( ...call API and do stuff ...);
} while (next_cursor !== null)
let next_cursor;
do {
next_cursor = await step( ...call API and do stuff ...);
} while (next_cursor !== null)
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?