Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Approval flow runs twice

(0) ShareShare
ReportReport
Posted on by 18

Hello,

 

My approval flow runs twice every time and item is edited in my SharePoint library and I am unsure why. I have removed conditional triggers and any loops involved, but still cannot figure out why it runs twice every time it is triggered. Can anyone see any issues in my flow where this could be happening? 

 

snippet 1.PNGsnippet 2.PNGsnippet 3.PNG

  • mpacifico777 Profile Picture
    18 on at
    Re: Approval flow runs twice

    I was able to solve the issue from the article you sent, thank you very much!

  • Pstork1 Profile Picture
    66,004 Most Valuable Professional on at
    Re: Approval flow runs twice

    The item won't be marked as "Pending" until the approval is sent.  So I suspect that is why its not triggering. The best way to do this is to run the flow under a service account.  Then use a trigger condition that it the item wasn't modified by that service account.  If anyone else modifies the item the flow will trigger, but if the flow modifies it, then it won't.

  • mpacifico777 Profile Picture
    18 on at
    Re: Approval flow runs twice

    The flow is not triggering at all now.

     

    @equals(triggerOutputs()?['body/ApprovalStatus/Value'], 'Pending')

     

    Here is the conditional trigger I am using, anyone know what I am doing wrong?

  • mpacifico777 Profile Picture
    18 on at
    Re: Approval flow runs twice

    I realized I had the @ in the wrong spot and removed a parenthesis, I will now try this again.

  • mpacifico777 Profile Picture
    18 on at
    Re: Approval flow runs twice

    Hello,

     

    After looking at the article I have tried but this error is coming up now. After the edits are made to the file its status is set to "Pending" but I don't know how to tell the function to look for that value 

    snippet 4.PNG

  • Verified answer
    Pstork1 Profile Picture
    66,004 Most Valuable Professional on at
    Re: Approval flow runs twice

    Did you add a trigger condition to make sure it doesn't re-trigger the flow when you set the content status?  Take a look at the following article.

    How to avoid infinite trigger loop in Power Automate (tomriha.com)

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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow