
Announcements
Hello,
Currently we have a system that generates an email when a SharePoint item is added in a list.
Sometimes, we have mutiple files that get added and we get about 30 emails in the timeframe of about 15 per second or so, very annoying.
Is there anyway to add a delay once a flow is triggered? In other words, when the flow successfully runs once we still want it to get triggered again, but not for another 15 seconds or so - this would dramatically decreases useless emails.
EDIT: I see there is a delay action in Flow, but this only delay's a certian number of seconds until the flow continues to run - we need it so that when the trigger requirements are met - only run once every 30 seconds are so, meaning that within those 30 seconds if the trigger event requirements are met again- they will be ignored meaning ultimetley one email will be sent in those 30 seconds
Thanks.
Hi @SolarWill,
This is a tricky problem, because of trigger-When an item is created, as long as a new item is added, Flow will necessarily trigger.
And it seem to that can’t do what you want (succeed in 30 seconds, but send email only once).
Each Flow trigger and run is a separate process as long as the conditions are met.
At present, the advice I can provide is to use the Delay action. The delay time is set a much more, and the interval between the execution of the two flows is longer, so that there is no case of sending a lot of mail within 15 seconds.
Or if the situation allows, instead of using "When an item is created", use Recurrence, set the frequency to trigger Flow, then get several recently created items, and then send the email notification with a table in body.
Configure Get items--Order by(descending order), get the newly created several files, and then save this information to a Table, as the body of the mail to send.
Image reference:
Best Regards,
Barry