cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 433 members 4,472 guests
Please welcome our newest community members: