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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get a push notificatio...
Power Automate
Unanswered

Get a push notification at 05:30 in the morning if I have received any emails during the night

(0) ShareShare
ReportReport
Posted on by 15

Hi

 

We have a situation that a person wants to be woken up at 05:30 if a certain mail box has recieved any new emails during the night. Is this possible with flow, if so how?

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    on at

    Hi @ E_G,

     

    Do you want to get a notification at 05:30 everyday if there are new emails arrive during the night?

     

     

    Please refer to screenshot below to run the flow at 05:30 everyday to check if there are new emails arrive during the night, if there are new emails arrive during the night,send a mobile notification to the user:

    Capture.PNG

    The expression in the condition as below:

    @greater(length(body('Get_emails')), 0)

     

     

    The flow would run successfully to send a mobile notification to the user if there are new emails arrive during the night as screenshot below:

     Capture.PNG

     

    Regards,
    Alice Zhang

  • E_G Profile Picture
    15 on at

    Thank you very much for your response. Would this flow take into account if for example you were to leave a message unread that arrived at 22:00 the same evening? Or does it only take into account the last 10 messages that are unread regardless when they were delivered?

  • Verified answer
    vecerpa Profile Picture
    786 on at

    Hi @E_G,

     

    Solution provided by @v-yuazh-msft is taking 10 latest unread messages that are in "Inbox" folder. No validation against time when they arrived. If you need so, there is needed to add one more condition to validate it. So finall Flow will looks like this:

     

     FlowEmailReport1.PNG

     

    The formula in condition looks like this:

    @greaterOrEquals(items('Apply_to_each')?['DateTimeReceived'],addhours(utcNow(),-8))

    In this case the time is utcnow() that means 5;30 - 8hours that means 21:30 to make it simplier.

     

    When there is met this condition then I'm setting help variable "isTrue" to true, variable is boolean. And after this loop I'm checking this variable and if it is true then I'm sending notification, if not nothing happen.

    FlowEmailReport2.PNG

     

    Hope this is helpful.

    P.

     

     

  • E_G Profile Picture
    15 on at

    What an incredible forum, you just get the working solution served without doing any work 🙂 I will test this proposed solution asap. Thanks!

  • v-yuazh-msft Profile Picture
    on at

    Hi @ E_G,

     

    Have take a try to test it on your side?

    Please let me know if your issue could be solved.

     

    Regards,
    Alice Zhang

  • E_G Profile Picture
    15 on at

    I believe I have it working now. Do you know if the variables one is comparing against, datetimereceived for example, is also in UTC or do I need to make corrections for time zones and DST etc?

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard