Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Create a 'Get automatic replies configuration' action to check if its enabled (Out of Office)

(0) ShareShare
ReportReport
Posted on by 12

I want to create flow that checks to see if Out of Office is enabled, and to provide a decision from that result.

  • Verified answer
    IvanD Profile Picture
    IvanD 12 on at
    Re: Create a 'Get automatic replies configuration' action to check if its enabled (Out of Office)

    Thanks, my subsequent searches discopvered a blog here, that described exactly that.

    https://flow.microsoft.com/de-de/blog/canada-mailboxes-aad/

     

    Adding the below condition is the real 'gem' that allows the process to work:

    1. Add a condition.
    2. Select edit in advanced more and add an expression like: 
      @not(empty(body('Get_mail_tips_for_a_mailbox')?['AutomaticReplies']?['Message']))
    3. The above condition means that the next action will only run if there is an automatic message present.

    Im my case, i am using this function to set my own Out Of Office automatically every fortnight, and if one already exists, to send me an email/push notification to ask whether it should 'overwrite' the existing settings?

     

    Regards,
    Ivan

     

    1.  
  • Verified answer
    Re: Create a 'Get automatic replies configuration' action to check if its enabled (Out of Office)

    Hi Ivan,

    there is a preview action called "Get mail tips for a mailbox".
    If i have understood correctly, you want to check if your mailbox has Autoresponse activated.
    If so, you can check if the "Message"-Property of the "Get mail tips"-Action is empty:
    2019-01-18_14-29-50.png

     

    2019-01-18_14-23-05.png

     

    Hope this helps.

    Best regards
    Stefan

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

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics