Display reportees of a Manager in a Catalog item

chinni
Tera Expert

Hi Community,

I need your help to accomplish the below task:

Requirement:

I have to create a Catalog item which is generally used by the managers.

Let's consider a use case: For example, if there are six user records and they have the the manager field updated as "User A".

Now, when the User A tries to access the Catalog item that we build, it should display the list of reportees [the users with manager as User A] should be displayed.

Could you please help me in getting this done!

Regards,

LKongara

6 REPLIES 6

AbhishekGardade
Giga Sage

hello Lkongara,

 

1. Create new script include and call it from reference qualifier.

2. You can call reference qualifier as below:

 javascript:new scriptIncludeName().funtionName(); 

Please provide a screenshot of catalog item.

Thanks,

Abhishek Gardade

Thank you,
Abhishek Gardade

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

So basically you want this functionality:

if user A is logged in and uses the catalog item and there is one reference variable to sys_user table; when clicked on the lookup icon only those users should be shown whose manager is User A i.e. logged in user

if yes then achieve this using simple ref qualifier as below; manager is dynamic me; what it does is it will show only those users where manager is logged in user

find_real_file.png

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

chinni
Tera Expert

Hi Ankur,

 

Your solution doesn't help my requirement, because the form should display a list of reporters under that logged in user.

 

Regards,

Lohitha

Hi,

What does it mean it should display list of users under that logged in user?

Does it not mean show all users whose manager is current logged in user?

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader