Skip to main content
Best answer

Add an action after a loop


I have a Zap that creates and invoice record, then loops through and adds the line items for that invoice.  I would like to add more steps/actions after that loop has completed, outside of the loop. Is this possible? 

Best answer by DavidLGS

Yes. After the last step contained within your loop, add a filter. The filter condition should be “Loop iteration is last → true”.

 

 

Any loop that is NOT the last iteration will fail the filter and go back to the top. So on the last iteration, it meets the filter criteria and continues down to your next actions.

View original
Did this topic help you find an answer to your question?

4 replies

DavidLGS
Forum|alt.badge.img+6
  • Zapier Expert
  • 112 replies
  • Answer
  • February 3, 2025

Yes. After the last step contained within your loop, add a filter. The filter condition should be “Loop iteration is last → true”.

 

 

Any loop that is NOT the last iteration will fail the filter and go back to the top. So on the last iteration, it meets the filter criteria and continues down to your next actions.


  • Author
  • New
  • 1 reply
  • February 3, 2025

Thank you. Are they plans to simply accommodate the ability to continue to add actions outside of the loop, so when the loop completes, the process flow exits the loop and continues with the next action?  This solution does currently work for me as I’m only required to make one additional API call, but I can see use cases where I would want to continue multiple actions and paths, outside of the context of this loop.


DavidLGS
Forum|alt.badge.img+6
  • Zapier Expert
  • 112 replies
  • February 3, 2025

You’ll have to wait for a Zapier employee to chime in on that one.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7242 replies
  • February 4, 2025

Hi there, ​@Craiger 👋

Great question! There aren’t any current plans to add that functionality, but we do have an open feature request for adding actions after a Looping action. I’ve added your vote to it, and while I can’t guarantee if or when it will be implemented, we’ll be sure to notify you via email if it is.

I’m so pleased that approach of using a Filter works for now—thanks so much for sharing that, ​@DavidLGS! 🤗

If there’s anything else we can help with just let us know. In the meantime, happy Zapping! ⚡