cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SpDev
Helper I
Helper I

How to check if mail was already sent?

Hi,

I have a flow that runs every 10 minutes and check if a certain date/time has been reached. 

If it is reached the flow send an email as a reminder to the ownder of the document. 

The problem I have is that since the flow runs each 10 minutes the user is getting a lot of emails. 

The condition to check the date/time is set to today is equal or greater than the date/time from the library.

When I change the condition to is equal there is a risk that the condition never meets since the flow wait 5 minutes between runs.

Is there a way to check if the mail was sent to avaoid sending too many  mail to the same user?

 

Best regards

Americo

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @SpDev ,

 

You could try to create a Yes/No field in SharePoint Library to determine if the message has been sent.

The default state of the field is No. Add Condition above Send an email action to determine if the value of this field is false. If so, the message can be sent.

After the message is sent, use Update file properties action to update the field value and change the state to Yes.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-bacao-msft
Community Support
Community Support

Hi @SpDev ,

 

You could try to create a Yes/No field in SharePoint Library to determine if the message has been sent.

The default state of the field is No. Add Condition above Send an email action to determine if the value of this field is false. If so, the message can be sent.

After the message is sent, use Update file properties action to update the field value and change the state to Yes.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thanks for the answer.

It is a simple and clever solution I am gonna implement it. 

 

Regrads!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors
Users online (1,564)