cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (33,386)