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 Automate
Answered

Outlook Time Received

(0) ShareShare
ReportReport
Posted on by 4

How does one use the outlook received tiem condition. I want to make a flow that sends a text when I get an email during work hours but I can't quite figure out how to get the timing right. I've tried to have it go when time received contains monday,tuesday,wednesday,.... and I've tried time is greater that 8 and less than 5, but none of this seems to work. Any help on the formatting of this would be very much appreciated.

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @NoahB ,

     

    Please refer to the following method to configure Flow.

    • Use dayOfWeek() function to determine which day of the week. 0 stands for Sunday and 6 stands for Saturday.
    dayOfWeek(triggerBody()?['DateTimeReceived'])
    • Use expression below to get the HH of the Received Time.
    int(formatDateTime(triggerBody()?['DateTimeReceived'],'HH'))
    • Use Condition to determine if the values obtained above are all in line with expectations, if so, send the message.

    Image reference:

    44.PNG

    Hope it helps.

     

    Best Regards,

  • NoahB Profile Picture
    4 on at

    Thank you so much for your help however, after implementing this I keep getting flow failures:

     

    InvalidTemplate. Unable to process template language expressions for action 'Condition' at line '1' and column '2589': 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Integer'.'.

     

    After doing some googling around I found that I needed to set the "Include Attatchments" tab to yes. I did that but I am still getting the failures, as well as the texts coming through outside of the designated times. Any insight would be very much appreciated.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard