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

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
Highlighted
Community Support Team
Community Support Team

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

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
Highlighted
Community Support Team
Community Support Team

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

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (7,431)