cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
karolyuan
Helper I
Helper I

Is there any way to get all managers until a specific person?

I have tried to use do until loop, but it doesn't return anything as I expected. It returns only one level of manager. Here are some screen shots.
Capture.PNG2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
karolyuan
Helper I
Helper I

I have found solution myself. 

View solution in original post

2 REPLIES 2
karolyuan
Helper I
Helper I

I have found solution myself. 

Anonymous
Not applicable

Hi @karolyuan ,

Your do until loop is set to run until varRequestorEmail is equal to a certain value, but I can't see where you're updating this variable? You're also going to return the same person everytime.

 

Have a look at this, I've tested it, and it works:

screencapture-australia-flow-microsoft-manage-environments-852a8ebb-98be-4d2f-a1e0-0c51a73f099f-flows-e007c113-edae-4716-b68e-73001a830ad5-2022-01-30-16_13_32.png

 

 

 

 

Cheers,

Ben

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (5,177)