cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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

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

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Advocate IV
Advocate IV

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

View solution in original post

Highlighted
New Member

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.  

View solution in original post

2 REPLIES 2
Highlighted
Advocate IV
Advocate IV

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

View solution in original post

Highlighted
New Member

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.  

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (6,896)