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 Platform Community / Forums / Power Automate / Breaking an approval r...
Power Automate
Suggested Answer

Breaking an approval request loop

(1) ShareShare
ReportReport
Posted on by 14
Hello. 
 
I am trying to create a flow that will automatically request an approval when a file/document is edited/modified.
 
Now the flow I have works but there is a looping problem.  The trigger "when an item or file is modified" reacts to when the properties of the file are modified.  
 
So when my flow automatically requests an approval, once I get the answer, it updates the Approval status column with "approved or rejected", but by updating the approval status column, I am modifying the properties of the file, so it automatically requests an approval again and it therefore loops endlessly.
 
So I what I need is a trigger condition where it ignores the approval status column and the approvers column so that it doesn't loop.  In fact there are multiple columns I need it to ignore, but the principle is the same.
 
However as the trigger conditions are limited to equals/not/or/if/greater than etc... I'm not sure how to achieve this with those limited options. 
 
Any ideas ?
 
Regards
James
Categories:
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    69,417 Most Valuable Professional on at
    Here's a post that provides several different options for trigger conditions to prevent an infinite loop.   How to avoid infinite trigger loop in Power Automate  The easiest way to do it is to create the flow using an account that doesn't upload files to the library. Then create a trigger condition that only fires if the editor (modified by) isn't that account.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
     
  • JP-08041315-0 Profile Picture
    14 on at
    Excuse me i'm sorry but what you just said here :
     
    "The easiest way to do it is to create the flow using an account that doesn't upload files to the library. Then create a trigger condition that only fires if the editor (modified by) isn't that account." 
     
    Has absolutely nothing to do with what I just described. 
  • Pstork1 Profile Picture
    69,417 Most Valuable Professional on at
    Let me try to explain.  You are describing a flow that is firing multiple times because the flow updates the properties of a file. When it does that the flow retriggers. To prevent that retriggering you need to add a trigger condition to the trigger that prevents it from retriggering when an update is made by the flow instead of by a person in the document library. I provided an article that discusses multiple different types of trigger conditions that do that. and then suggest the easiest way to do it is add a trigger condition that says the trigger only fires if the change is made by someone other than the maker of the flow. Since the flow is automated it will always run in the security context of the person who creates the flow. So if you use an account to create the flow that doesn't upload or change documents and set the trigger condition to not fire when that account makes changes (ie. the flow is making the change) then the flow will only fire when the document is modified by someone other than the flow maker.
     
    I hope that clarifies.  

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard