I have workflow that loops through an API request because it is paginated. There is an IF statement to check if there is more results which is returned in the API request. The IF statement when run on a larger dataset will return both value in TRUE and a run in FALSE. How can I combine these two? Currently anytime I add a node after it stop running the loop.
Hi @jmullins, when using an IF node to end a loop (rather than the done output of a Split in Batches node for example) you could use an approach like this to combine all items after looping:
This code node will simply fetch all items from another node inside your loop and make them available inside a single list.
Hope this helps! Let me know if you run into any trouble with this
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.