cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jpak004
Level: Powered On

[Help Needed] Preventing a flow from running again and again once a condition has been satisfied

Hi all,

 

Situation: I've created a flow where when an item is created or modified on a SharePoint list, it'll run a condition checking whether two fields within the SharePoint list are a certain value and if "true", will copy a few files into a specified folder and also create a task in MS Planner.

 

Problem: This works great when the condition is initially satisfied -- but if someone goes into the SharePoint list to make an update, it will trigger the flow again and I end up having duplicate files and duplicate tasks in Planner. 

 

Question: Is there anything I can do to stop it when condition is initially satisfied -- I was researching and saw some folks trying to accomplish this through some complex versioning functions/flows -- but is that the only way to do it?

 

Snapshot2.PNG

 

 

 

1 REPLY 1
Super User
Super User

Re: [Help Needed] Preventing a flow from running again and again once a condition has been satisfied

You could add a second, time-based condition utilizing a time-based expression to your Flow. So if the modified date/time are later than the created date/time, then your first field-based condition does not run again. 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. THANKS!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,329)