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!

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Users online (2,949)