cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dlx_ares_sp
Regular Visitor

Time off Time off reason id to the reason Label

Hi,

 

We are prepareing an automated flow which exports the time off from shifts. I have to questions:

1) How can I get who approved the time off

2) I can get the reason ID but I would like to get the reason label. For instance: "holiday" or "personal day"

 

Please see the current flow:

Captura.PNG

 

May thanks

1 ACCEPTED SOLUTION

Accepted Solutions
fchopo
Super User
Super User

Hello @dlx_ares_sp 

We can divide the flow in 2 steps:

- Step 1 -> Get Reason ID string value.

1) For each time off instance

2) Get all the time off reasons

3) Find the specified time reason (filter array)

4) Get the first element found.

timeofreason1.png

 

- Step 2 -> Find the approver

1) For each time off instance

2) Get the User ID value field

3) Search user profile

timeofreason2.png

 

The flow could be improved in order not get all time off reasons every time (save the elements in an array).

Hope it helps!

Ferran

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

1 REPLY 1
fchopo
Super User
Super User

Hello @dlx_ares_sp 

We can divide the flow in 2 steps:

- Step 1 -> Get Reason ID string value.

1) For each time off instance

2) Get all the time off reasons

3) Find the specified time reason (filter array)

4) Get the first element found.

timeofreason1.png

 

- Step 2 -> Find the approver

1) For each time off instance

2) Get the User ID value field

3) Search user profile

timeofreason2.png

 

The flow could be improved in order not get all time off reasons every time (save the elements in an array).

Hope it helps!

Ferran

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,448)