Break out of IPaaS For Loop

How do you break out of an IPaaS For loop once you have found the item you are looking for?

Thanks.

Asked by Tevis Boulware on Thu 9/1/22 7:31 PM
Sign In to leave feedback or contribute an answer

Answer (1)

This answer has been marked as the accepted answer
Carrie Willis Wed 9/7/22 10:02 AM

Hi Tevis,

There are a couple options for you:

  1. Use a Where clause on your For/For Each loop
  2. Use a Get In or Find In step instead

I've attached a quick video for you demonstrating how you'd do each of these. I recommend approach number 2, using the Get In, if you're iterating over a whole list just looking for one item. It's definitely more streamlined (one step vs 2 or more), and I think it may have a small performance benefit but don't quote me on it.

Link to the video: https://teamdynamix-my.sharepoint.com/:v:/p/carrie_willis/Ec8l4lL8vT1IqAT2Ctz4pqABUiGWnFDg2Mcay_RvQouCXw?e=fYHnOG

Thank you,

Carrie

No feedback