Get manager hierarchy

Rushikesh Gorde
Tera Contributor

Hello All,

I stuck on below issue:

We have a Manager and Rank field on a user table. Rank is a numeric. We need to get a manager or managers manager whose Rank is 11 the dot walk can be at any level.

example my Manager is Rakesh who has Rank 2, Rakesh's Manager is Pratik who has Rank 9, Pratik has Manager Ratan who has Rank 11 need to get Ratans email as he had Rank 11. This walk can go to any number. So can anyone please help us with the possible solution.

Thank you !!

2 REPLIES 2

Harish KM
Kilo Patron
Kilo Patron

Hi here is similar answer

https://community.servicenow.com/community?id=community_question&sys_id=7608836ddb1cdbc01dcaf3231f9619f1

Regards
Harish

Community Alums
Not applicable

Hi @Rushikesh Gorde ,

You can use this script to get the manager's hierarchy:

 https://community.servicenow.com/community?id=community_blog&sys_id=82a127311bd24d10d018c8ca234bcb36

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep