cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jace
Advocate III
Advocate III

Check if Employee is Out of Office

As a Flow Administrator, I need the ability to check if the employee is out of office, so I can have an alternative to the flow when they are not in the office.

 

Example:

My flow creates tasks for individuals in Microsoft Planner.  On days the employee is out of office, I want to exclude/re-assign tasks they will be unable to complete . 

1 ACCEPTED SOLUTION

Accepted Solutions
ScottShearer
Super User
Super User

@Jace 

One way to see if an individual is out of the office is to check their mail tips for an out of office message.  If the message exists, then the individual is out of the office.  See my example below.

If the condition is true, then the individual is in the office.

If the condition is false, then they have an out of office message.

OOO1.jpg

 

 

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

Scott

View solution in original post

5 REPLIES 5
ScottShearer
Super User
Super User

@Jace 

One way to see if an individual is out of the office is to check their mail tips for an out of office message.  If the message exists, then the individual is out of the office.  See my example below.

If the condition is true, then the individual is in the office.

If the condition is false, then they have an out of office message.

OOO1.jpg

 

 

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

Scott

This is perfect, thank you!

@ScottShearer 

 

After running a couple times, I realized my flow was not working as intended.  The condition always returned false when looking for a null value.  I removed the null expression and left it blank.  It now is returning true, but the true test will be when an employee actually turns on Out Of Office.

flow screenshot.png

 

@Jace :

Your condition should look something like this:

OOO2.jpg

You need to enter "null" in the expression window and select "null".

My condition will return as true if there is no out of office message.

 

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

Scott

I have tested both yours and Jace's conditional test: @Jace is right - null (correctly entered as an expression) doesn't seem to work, but leaving the condition empty does. Nice method though Scott, thanks for suggesting it.

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,337)