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

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
Expiscornovus Profile Picture

Expiscornovus 201 Most Valuable Professional

#2
David_MA Profile Picture

David_MA 174 Super User 2025 Season 2

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard