cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microuts
Level: Powered On

How to stop multiple emails?

Morning all!  I'm hoping someone can help with the issue I'm having on a Flow with a SPO document library.  The flow should send an email if a file is uploaded in a specific folder and if the status of a document = X.  I'm using the "When a file is created or modified (properties only) where I identify the folder, and then use a switch to parse through the individual statuses.

 

It seems to work perfectly except for the 3 emails that are being sent rather than just one.  I've verified that the user only created the file (they did not modify it twice), and the flow is not updating the metadata causing a loop.

 

Any insight would be greatly appreciated!

Thank you......

 

2019-04-02_8-20-53.png

1 REPLY 1
Super User
Super User

Re: How to stop multiple emails?

@Microuts :

My suggestion is to add a column to the library.  For example, add a "yes/no" column called EmailSent with a default value of No.  When the email is sent, update the column to "Yes"

 

Have a condition before the email is sent where you check the value of the EmailSent column - if it is set to Yes, don't send the email.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

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 Kudoed Authors
Users online (3,780)