web
You’re offline. This is a read only version of the page.
close
Skip to main content
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:
I have the same question (0)
  • Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at
    Re: Delay until you receive a specific email

    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
    Re: Delay until you receive a specific email

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard