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 / Perform an action if u...
Power Automate
Unanswered

Perform an action if user is out of office

(0) ShareShare
ReportReport
Posted on by 4

I built a flow which is when a user fills out and submits a form then it goes for approval and is then submitte to a list in sharepoint. 

Trying to build in a new condition where it checks if the approver has an automatic reply on. 

I stripped out all of my work and brought it back to a basic level to test this new functionality.

Spent over 5 hours and nothing works for me, i followed previous threads of other people having this problem but nothing i try works. 

Can you help me please 

 

Here is the extremely basic flow im working with 

PowerAutomate.PNG

 

No matter what i do it keeps returning false

PowerAutomate2.PNG

 

Here is when out of office is on, still false

PowerAutomate3.PNG

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    When a new forms response has been submitted you need to get the response details:

    Snag_10090aa.png

    Then you need to check if an Out of Office message has been set, by checking if message property exists:

     

    Snag_107c9e8.png

     

    Snag_104c41a.png

    outputs('Get_mail_tips_for_a_mailbox_(V2)')?['body/value']?[0]?['automaticReplies/message']

     

    Hope this helps.

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

     

  • tomcolgan Profile Picture
    4 on at

    Unfortunately that didnt work, keeps returning true for both when automatic replies are on and off

     

    PowerAutomate4.PNG

     

  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    Please share your flow including the expressions used in the condition.

     

    Can you also please paste the runtime output of the data you are getting from the Get Mail Tips action. 

     

    Here is a sample runtime output. 

     

     

    [
     {
     "mailboxFull": false,
     "externalMemberCount": 0,
     "totalMemberCount": 1,
     "deliveryRestricted": false,
     "isModerated": false,
     "maxMessageSize": 37748736,
     "emailAddress": {
     "name": "",
     "address": "user@company.com"
     },
     "automaticReplies": {
     "message": "I am away",
     "scheduledStartTime": {
     "dateTime": "2022-10-21T15:30:00.0000000",
     "timeZone": "UTC"
     },
     "scheduledEndTime": {
     "dateTime": "2022-10-26T16:00:00.0000000",
     "timeZone": "UTC"
     }
     }
     }
    ]

     

     

    [
     {
     "mailboxFull": false,
     "externalMemberCount": 0,
     "totalMemberCount": 1,
     "deliveryRestricted": false,
     "isModerated": false,
     "maxMessageSize": 37748736,
     "emailAddress": {
     "name": "",
     "address": "user2@company.com"
     },
     "automaticReplies": {
     "message": "<div>I am on annual leave until the 25th October 2022. Best wishes X</div>"
     }
     }
    ]
    

    Ellis

  • tomcolgan Profile Picture
    4 on at

    Here is the flow

    1.PNG2.PNG

     

    Here is the autoreply off output 

    autoreply off.PNG

     

    Here is when the autoreply is on 

    autoreply on.PNG

    No matter if its on or off its returning true value 

    true.PNG

  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    Hi @tomcolgan ,

     

    I can't see an issue with the condition that checks to see if a message is set.

     

    Please create a new flow with the following two actions, test then paste the runtime output as shown below:

    Snag_584e79d.png

    outputs('Get_mail_tips_for_a_mailbox_(V2)')?['body/value']?[0]?['automaticReplies/message']

     

    Runtime output with OOO set:

    Snag_58979d7.png

    Snag_589a617.png

     

    Runtime output with OOO NOT set:

    Snag_58b1af4.png

    Snag_58b677e.png

    Please double check the that the expressions have been entered correctly


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • CU10010325-0 Profile Picture
    31 on at
    Dear all, 
     
    I have been using the above for 3 years now however it produces the proxy error below. Kindly advise.

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