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

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!



View solution in original post

1 REPLY 1
Super User
Super User

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!



View solution in original post

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

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