cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Githendra23
Helper III
Helper III

How to exit a function in Power Automate ?

Hi everyone,

 

I have a flow that is used to delete all the members in a o365 group. Firstly it will list all the groups that exists and then there is a function in the flow that will check, if the name of the group matches to the name of a group i chose to delete all the members. The problem is that the loop will continue until it has listed all the groups.

 

Is there a way to exit a loop when the function is true?

 

Githendra23_0-1656665761639.png

 

 

Thank you in advance,

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
VictorIvanidze
Community Champion
Community Champion

Hello,

 

no direct way to do that. As a workaround you can use "do until"  action  instead of "apply to each".

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

View solution in original post

2 REPLIES 2
VictorIvanidze
Community Champion
Community Champion

Hello,

 

no direct way to do that. As a workaround you can use "do until"  action  instead of "apply to each".

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

Thank you !

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,050)