web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Restart a loop

(0) ShareShare
ReportReport
Posted on by 34

Hello, is there any way to restart a loop? I mean you are for example in the middle of the loop and you want to go back to the beginning of the loop.

 

How could this be done? If you could put me some image please, I am very novice with this program.

 

Thank you very much for your time.

I have the same question (0)
  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Yes, you can create a label and put it right before the loop, then use Go to Label. You'd obviously need it in a conditional or some kind of indicator to restart the loop. And you'll also want to be careful with this, as it could create an infinite loop, like my example is below.

    ryule_1-1659995202395.png

     

     

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Ryule beat me to this; this was going to be my recommendation as well.

     

    To prevent a runoff loop, set variable %LoopAttempt% to 0.  At the beginning of the loop, set variable %LoopAttempt% to %LoopAttempt + 1%.  Then have an If %LoopAttempt% > X (number of attempts you want), then "Exit Loop".  This will prevent a runoff and let you have control of how many loops it can attempt by simply defining X.

     

    Good luck!

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard