Skip to main content
Best answer

Looping in sub-zaps


Forum|alt.badge.img

I want to use a sub-zap with an loop. The sub-zaps open up the ability to use multiple loops in a zap. I’m fully aware of the limits with the “Return From a Sub-Zap” in a loop. To make it still work I have used a filter - that only continues the loop if its the last iteration. 

Theoriticaly this would work without issues. I even get the correct results, but… zapier says there is an error in my loop so I can’t publish it…

Is there some way to fix this?

And yes I can use this in the main zap, but don’t want to as it limits the possiblities with the loop. I’m in need of having multiple loops in my zap to iterate through different data. 

Here is a screenshot of my sub-zap.

 

Best answer by knhalden

Here is the solution that worked for me.

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

6 replies

Forum|alt.badge.img
  • Author
  • Beginner
  • 2 replies
  • January 22, 2025

Nvm. I fixed it by using a error handler and just inserting a dummy webhook in the error.


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2207 replies
  • January 23, 2025

Wow! Thank you for confirming that your resolution got the Zap running. This will significantly help our Community members to have as a reference for the same issue.


@knhalden Thanks for sharing your resolution. However, I’m unable to make it work. Could you elaborate how you implemented the “return from a sub-zap”? Below you can see my setup. Your help would be much appreciated.

 


Forum|alt.badge.img
  • Author
  • Beginner
  • 2 replies
  • Answer
  • January 23, 2025

Here is the solution that worked for me.


@knhalden thanks for your help! It works :)


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7304 replies
  • January 24, 2025

Awesome work here, ​@knhalden! 👏 Thanks so much for sharing that screenshot of your setup to help ​@Daan-onesix get unstuck.

It’s so great to see this kind of collaboration in the Community—keep up the good work! 🧡