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

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

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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.

Top Kudoed Authors
Users online (3,852)