cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kylep
Frequent Visitor

We want to check a mailbox for an email and send out an email if it's not received

We want to check a mailbox each day for a specific email.  If the email isn't there we want to send an email to a different mailbox.

 

How can we do this?

 

We've used the Get emails action with the Search Query so it only finds the specific email we want.  That works great, but the problem is how can we tell Flow to email out only when the array is empty?

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @kylep,

 

I have made a test on my side and please take a try with the following workaround:

  • Add a Recurrence trigger, Interval set to 1 and Frequency set to day.
  • Add a "Get emails" action, specify Folder and Search Query.
  • Add a Condition, click "Edit in advanced mode", type the following formula:
@empty(body('Get_emails'))
  • Within "If/yes" branch of Condition, add a "Send an email" action.

Image reference:16.JPG

The flow works successfully as below:17.JPG

Best regards,

Kris

Community Support Team _ Kris Dai
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

1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @kylep,

 

I have made a test on my side and please take a try with the following workaround:

  • Add a Recurrence trigger, Interval set to 1 and Frequency set to day.
  • Add a "Get emails" action, specify Folder and Search Query.
  • Add a Condition, click "Edit in advanced mode", type the following formula:
@empty(body('Get_emails'))
  • Within "If/yes" branch of Condition, add a "Send an email" action.

Image reference:16.JPG

The flow works successfully as below:17.JPG

Best regards,

Kris

Community Support Team _ Kris Dai
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

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 (71,975)