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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Users online (1,413)