web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Delay until you receiv...
Power Automate
Unanswered

Delay until you receive a specific email

(0) ShareShare
ReportReport
Posted on by 21

How would I build a "Do Until" loop to only exit once an email with a specific subject line has been received? If I do a "Get email" within a "Do Until" and I feed the subject line in the "Value is equal to" field, it auto adds an "apply to each" condition due to the fact that it is checking for like 25 emails.

 

But it wont save and run like that due to "Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Apply_to_each' at line '1 and column '1999' cannot reference action 'Get_emails_(V3)'. Action 'Get_emails_(V3)' must either be in 'runAfter' path or within a scope action on the 'runAfter' path of action 'Apply_to_each', or be a Trigger.'.'."

Categories:
  • Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at

    that's right you'll not get beyond 25 mails and it would be ineffective to check from flow as well.

  • PatrickJMcLean Profile Picture
    21 on at

    Basically I have Watboxes that turn on at 8:00pm and turn off at 8:30pm. The only way we can receive any sort of notification other than manually checking that they turned off is to receive an email when it turns on and when it turns off.

     

    So what I want to do is trigger a flow when I receive the "Turned on" email and then when I receive the "turned off" email, pump that information received for 11 of my Wattboxes into one email that sends to a Teams Channel, and also spit out the amount of time that elapsed between receiving each email.

     

    Perhaps it might be easier for me to just check for the "Off" email every 30 minutes or so, and if it doesn't receive it by a certain time then I can throw an error. But how do I build a condition based on whether my "Get Emails (V3)" task found any emails or not?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard