Skip to main content

Notifications

Power Automate - Using Connectors
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.

  • NoahB Profile Picture
    NoahB 4 on at
    Re: Outlook Time Received

    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.

  • Verified answer
    v-bacao-msft Profile Picture
    v-bacao-msft on at
    Re: Outlook Time Received

    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,

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard

Featured topics