cancel
Showing results for 
Search instead for 
Did you mean: 

Exit from "Apply to Each"

I want to exit from "Apply to Each" for exit the loop.

In some case, the loop does not need processing items after specific item.

 

Regards,

Yoshihiro Kawabata

Status: Under Review

Thank you for suggesting this idea, it is a good suggestion!

Comments
Stephen
Power Automate
Status changed to: Under Review

Thank you for suggesting this idea, it is a good suggestion!

yoshihirok
Memorable Member

Hi @Stephen,

Thank you for This idea status change to  UNDER PREVIEW  🍙🍙🍙

Anonymous
Not applicable

Hi @Stephen,

 

@yoshihirok had a great suggestion; I too am looking for a way to exit For Each loop given a certain condition.

 

Thank you,

Lloyd

danman864
Regular Visitor

This would be very useful to shorten processing times in several of my Flows.

Faro
Advocate I

Under review for so long ...

Faro
Advocate I

Hi @Stephen , did we have the decision for this request?

Stephen
Power Automate

Hi @Faro  - no we have not decided about this yet. Thanks.

Faro
Advocate I

Thanks @Stephen for the update.

 

Could you share the plan or schedule of how we will handle this request?

Because the idea was submitted quite long time ago, more than  2 years.

 

We are really looking forward for this feature to be relased.

Thank you.

Stephen
Power Automate

Hi @Faro  - this is a good idea but we don't have any plans to add this at this time. The are currently 100+ other ideas in the community with more votes than this, when planning and developing the next rounds of improvements to Flow we focus on the items that have the highest number of votes. For this particular idea you should consider using a Do-Until loop. With a Do-Until loop you can have a condidtion that exits whenever you want to. The drawback is that with such a loop you cannot execute in parallel (only sequentially).

rcdf
Advocate II

@Stephen  - I'm amazed this is not already included. Not being able to break out of a loop makes development difficult. That's a common practice in programming.  This idea is 2 years old?!  Wow.