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

Prevent a flow from triggering again if it has been triggered recently.

I have an automated flow that sends an email every time a change is made in a SharePoint Excel file. This is to notify me when someone updates the file with new weekly information.

 

However, sometimes other users will save the file three or four times when updating one piece of information, so I will get three or four emails in the span of fifteen minutes.

 

Is there a way to prevent my flow from running again if it has just recently been triggered, say in the last hour?

 

My flow uses "When a file is created or modified (properties only)" to trigger "Send an email (V2)".

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Prevent a flow from triggering again if it has been triggered recently.

Hi @Anonymous 

 

In this case you can't prevent flow to trigger for the last one hour or using other conditions.

 

What you could do is think about running the flow using some other trigger say for example to use scheduled interval runs every hour or so, then use Get Items from SharePoint filtered by created on or modified on date for the last one hour using UTCNow expression function to filter the records.



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

View solution in original post

1 REPLY 1
Highlighted
Super User III
Super User III

Re: Prevent a flow from triggering again if it has been triggered recently.

Hi @Anonymous 

 

In this case you can't prevent flow to trigger for the last one hour or using other conditions.

 

What you could do is think about running the flow using some other trigger say for example to use scheduled interval runs every hour or so, then use Get Items from SharePoint filtered by created on or modified on date for the last one hour using UTCNow expression function to filter the records.



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (8,079)