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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,078)