cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
abm
Super User III
Super User III

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 blogPower Automate Video Tutorials

View solution in original post

1 REPLY 1
abm
Super User III
Super User III

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 blogPower Automate Video Tutorials

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,975)