cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

[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
Brad_Groux
Community Champion
Community Champion

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,890)