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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Has anyone ever had lu...
Power Automate
Unanswered

Has anyone ever had luck in creating a fully automated approval flow that stops the autosave loop?

(1) ShareShare
ReportReport
Posted on by 4
Has anyone come up with a fully automated (without user pressing a button, status change or check in/out) to send an approval on a document that has autosave turned on without it creating multiple loops every time the document saves?   I can't seem to find a trigger that works because of how the document approval feature locks the document until it's approved.  
Categories:
I have the same question (0)
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    Please share an image of your flow configuration and especially the approval portion and trigger if below does not answer your question. That will help to better understand your issue. I am guessing you have a trigger when a document is created or modified, and this is triggering the flow every time.
     
    You will probably need to do something that is outlined here, which is for handling an infinite loop: How to avoid infinite trigger loop in Power Automate. It sounds like this is what you are experiencing. A simple thing would be to add a yes/no field named PendingApproval to the document library with a default value of no. When your flow triggers, you would update the field to true. When the approval is completed, set it back to false so it can run again for the next run.
     
    Then add two trigger conditions as outlined in the above blog post:
    1. The first will be where PendingApproval is equal to false: @equals(triggerOutputs()?['body/PendingApproval'], false)
    2. Since you don't want the users to have to toggle anything to run the flow, you will need another so that when you update the above back to false after the approval has completed, you will need to add something else, so the update does not trigger the approval again. As long as the account owner of the flow is not someone who is making changes to the document to trigger an approval, you can add a trigger condition to check if the current modifed by person is not the owner of the flow: @not(equals(triggerOutputs()?['body/Editor/Email'], 'flow.owner@domain.com'))
  • Laurelp Profile Picture
    4 on at
    Hi David and thanks for your response. 
    I tried that approach and with the approval workflow it appears to lock it down in a way when it's being edited that you can't modify the record.  I get the error message A later version of this item has already been modified. Other users can not edit the item until that version is approved or published.
     
    My workflow is fairly simple but I have tried moving steps around and many different triggers on version number, status etc but I think the doc approval locks it down once the process starts. 
     
     
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard