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
Super User II
Super User II

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (46,490)