Looping through results

Hey there!

Let me start off by saying that I’m by no means a developer, and that I’m someone that uses Pipedream and Make.

Today I tried creating my first “semi” advanced workflow and immediately noticed a small issue. I could not seem to find any related information in the documents, so figured asking here never hurt anyone.

I pulled 10 discord messages from a discord server and noticed they came as 10 different bundles (makes sense). I tried sending these to telegram and noticed it only sent one. This is where I came to the conclusion that Pipedream does not automatically iterate through bundles like make.com does.

Is there a prebuilt loop function that would make it so the send function would pull data from all the packages and send those over in that telegram message, or will I need to do some custom coding for that?

Best regards,
Dylan

Hi @me-05sdz

First off, welcome to the Pipedream community. Happy to have you!

Iteration and flow control are one of our top priorities, but in the meantime I have come up with a workaround to leverage two separate workflows to handle looping.

You can find the tutorial here:

That Github issue is also tracking this feature request, you can subscribe to it for real time updates.

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 requriement though I can’t beleive 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.

1 Like