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 / When a file is created...
Power Automate
Answered

When a file is created or modified trigger condition (properties only) loops

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to use trigger conditions to prevent my flow from looping. My scenario is a user uploads a document, it puts it in the checked out state while the user fills out the required metadata. I currently have this (below) to only trigger if the "change" is selected in the choice column and then my approval starts, however, if anyone modifies the document throughout the approval processes, it causes the workflow to trigger again. 

@equals(triggerBody()?['Type_x0020_of_x0020_Request']?['Value'], 'Change')

Categories:
I have the same question (0)
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Anonymous So you are triggering flow when someone change column value as 'change'. And column value is remain as change then i think it is causing to multiple runs.

    You need to create one Multiple line of text column name-StopRun and select these option

    Hardesh15_0-1612373246207.png

    then use this in trigger condition- @equals(triggerBody()?[‘StopRun’],null) (pls type this in trigger condition, do not copy paste)

    After that use one update action and set column value as NoRun.

    Please 'Thumbs Up' the posts that helped you and 'Mark as Solution' if my post answered your question.

    @Hardesh

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes I am using a choice column value as "change", thank you for the quick response I will try the suggestion and report back. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks again, those options are only available in a list, this is a document library, however I tried anyway and it continued to loop. 

    kast2L_8-1612376834584.png

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Anonymous  Share your flow screens and SharePoint list column.

     

    Please 'Thumbs Up' the posts that helped you and 'Mark as Solution' if my post answered your question.

    @Hardesh

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    kast2L_0-1612377411327.png

    kast2L_1-1612377552486.png

    kast2L_2-1612377635882.png

     

    If you need the rest I can share, its just the approval. This is a document library, not a list

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Anonymous  why are you using this trigger condition now-

    Hardesh15_0-1612377967805.png

    Please 'Thumbs Up' the posts that helped you and 'Mark as Solution' if my post answered your question.

    @Hardesh

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    When I removed, the workflow triggers twice, once when file is uploaded to the document library and then again when the metadata is added. 

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Anonymous Yes it will trigger when there is a change in your document library item.

    Do you want to trigger flow based on column value change?

    Please 'Thumbs Up' the posts that helped you and 'Mark as Solution' if my post answered your question.

    @Hardesh

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, so when an file is uploaded, it prompts to user to enter in meta data. I have a column choice (3 options in it). I have created a flow for each option, those options are, New Hire, Change, Transfer. If the user clicks on change, saves/submit, it will then kick start that approval process for that document based on the input from the user (in this example change). It felt easier to separate the approval processes for each selection then have it nested under one flow. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    is it possible to add another condition to make it only trigger based on the person who created it? So that when others make changes to the documents it won't trigger again? 

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 598

#2
Valantis Profile Picture

Valantis 477

#3
Vish WR Profile Picture

Vish WR 370

Last 30 days Overall leaderboard