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 / Run flow only on modif...
Power Automate
Unanswered

Run flow only on modified SharePoint item

(0) ShareShare
ReportReport
Posted on by 118

Hi,

I'm starting to convert some (the simplest) InfoPath forms and SPD flows to PowerApps and Flow.

In SPD when an item is modified, the workflow runs only on that item and not on all the items in the list. 

Which flow choice should I use or what method is used to run the flow only when the specific item is modified?

 

Categories:
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @AlbertoSP,

     

    If I understand it, it seems that you want to monitor whether a specified item has changed.

    You could use When an item is created or modified as the trigger, and then use Condition to determine whether the changed item is the specified one.

    You could use the Item ID as the basis for the judgment. The ID is a field with a unique value in the list.

    Expression:

    @and(equals(triggerBody()?['ID'], 2),not(equals(triggerBody()?['Created'], triggerBody()?['Modified'])))

    91.PNG90.PNG

    Please take a try.

     

    Best Regards,

    Barry

  • AlbertoSP Profile Picture
    118 on at

    That's not specific enough of a trigger. I have a list with hundreds of items and there could be many actions taken by many users every day. What I'm looking for is a trigger or a workflow that would start only if the item that is being modified.

    If I'm to have tens of thousands of items (as some of my lists do), if would crush searching for those items.

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @AlbertoSP,

     

    Currently, Flow does not exist a trigger that would start only if the item that is being modified.

    I am afraid that your needs cannot be achieved currently.

    If you want to the feature that you mentioned to be supported in Microsoft Flow, you could vote for the similar idea in the forum below:

    https://powerusers.microsoft.com/t5/Flow-Ideas/Setting-a-When-an-item-is-modified-trigger/idi-p/164323

    Also you could post your idea in the Flow Ideas forum, so it might be considered for future releases.

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    Best Regards,

    Barry

  • AlbertoSP Profile Picture
    118 on at
    The work around triggering workflows only when an item is modified is 1. To use " When an existing item is modified" SharePoint workflow 2. In my Power Apps I set a field called StartWF to Yes on Start 3. In the workflow when I update the field I set the StartWF to No 4. The first action of the workflow is to check the value of StartWF. If Equal No, then terminate. As a result the workflow will run twice an will end without causing any issues. Not ideal but it works.
  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    I think there's some confusion here. The trigger mentioned in other answers will only run for the item that was created/modified, and will not run for all items on the list. So if there are 1000 items, and you add one more, the flow will run just for that one item. If you add 1000 items, then yes, the flow will run for all 1000 items (though, using the condition provided, the flow could then immiately exit for those items, since they were created and not modified).

     

  • AlbertoSP Profile Picture
    118 on at
    Yes and No 🙂 If the workflow updates any field value (title for example), the Newly Created Item will be treated as Modified and the the rest of the action in the workflow will act on. If you don't have any condition to terminate it, the workflow will run on that item in an infinite loop.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard