PipedreamHQ / pipedream

Connect APIs, remarkably fast. Free for developers.
https://pipedream.com
Other
9k stars 5.28k forks source link

Loops in workflows #193

Open dylburger opened 5 years ago

dylburger commented 5 years ago

I'd like to run a set of steps or actions within a loop construct. For example, I might receive an array of 100 events in my HTTP payload, and I need to run an action on each. I can do this with code, but I have no way to loop through the elements of this array using Pipedream's actions. I'd like a "loop" action that can handle this use case.

rmcsharry commented 3 weeks ago

@dylburger Thanks for the considerate and timely reply! I've not had time to test this, hopefully soon. 🤞

matthewt commented 1 day ago

N8n has a nice way of working where if a step receives an array it automatically applies that step to each element in the array. If it receives an object it runs the step once. Its really good to work that way so that your flows don’t get disrupted when there is a change in multiplicity, and there is less “noise” in the workflow design.

I agree this is a critical requirement though I can’t believe such a nice and well build product doesn’t have a good solution. Having to drop into code for the most basic need isn’t nice. (posted here 7 months ago.. .https://pipedream.com/community/t/looping-through-results/3217/3)