Skip to main content

Notifications

Community site session details

Community site session details

Session Id : /2LorDlEKExB97gbj+eo8C
Power Automate - Building Flows
Answered

Getting a basic loop to work with email options

Like (0) ShareShare
ReportReport
Posted on 21 Nov 2022 12:19:31 by 41

Can anyone tell me why this loop doesn't work please?

 

langas1984_1-1669033089097.png

 

It doesn't matter what options I select, it leaves the loop and carries on with the flow.  The conditions determine the delay if option 2 or 3 are selected from the email.  The first option "Done" should be the only option to break the loop but they all seem to.

 

Thanks in advance

 

  • langas1984 Profile Picture
    41 on 21 Nov 2022 at 23:35:27
    Re: Getting a basic loop to work with email options

    Thank you. It worked.  I had tried variables before but not as Boolean but that seems to have made all the difference.  Thanks

     

  • Verified answer
    Ellis Karim Profile Picture
    10,936 Super User 2025 Season 1 on 21 Nov 2022 at 14:03:14
    Re: Getting a basic loop to work with email options

    Hi @langas1984 ,

     

    SelectedOption has no value when entering the loop.

     

    Use a variable to determine when to exit the flow.

     

     Then set the variable to false if the desired option of Done was selected.

    Snag_1e4dec90.png

     

    Also, set the limits on how long the loop needs to run for:

    How To Use The Power Automate Do Until Loop (zeitgeistcode.com)

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started