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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (65,934)