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 III
Super User III

@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 III
Super User III

@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

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,067)