Skip to main content

I’m running a loop to find multiple files that I then want to attach to a Gmail draft. Is there a way to add a step after the loop has iterated through all the inputs on which I’m searching, and then attach all the found files to the draft? That is––is there a way to add a step after the loop has stopped? (Apologies if this is too newbie of a question!)

Hi ​@nat28 

Help links for using Looping: https://zapier.com/apps/looping/integrations#help

 

How do I stop a loop from running in subsequent action steps?

All actions after the looping step will run for each iteration of the loop.
If you don’t want an action step to loop:

  • After the last step you want to loop, add a filter step.
  • Set the filter to only continue if the value loop_iteration_is_last matches the (Boolean) Is True condition.

The filter will run in every loop but will only pass in the last loop.
Any actions step after the filter will run once in the last loop and use only 1 task.

miscEye icon Note

If you want an action step to only run once, add it before the looping step, if possible.
This will use less tasks and the filter step won’t be needed.


Hi there, ​@nat28 👋

Did Troy’s reply help to point you in the right direction?

If you found a different solution or ran into any roadblocks, do let us know—eager to make sure your Zap is up and running! 🙂