catalogitem login user information

asd22
Tera Contributor

Hello, i have a catalogitem where the logged in leader user will get a list of all employees under them. The issue is i know how to do this with a map to field, but its a catalog item. How do i make it so that the logged in user gets all the employees under them in a dropdown style field. Refrence field to user table?

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@asd22 

you can have a reference variable if the leader wants to select only 1 reportee

list collector if multi selection is required

Lookup select box (similar to reference but with drop down look and feel)

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

but how do i make it so the leader only sees people that work for their department? 

@asd22 

are you saying it should show only those users which belong to logged in user department?

if yes then apply this reference qualifier

javascript: 'department=' + gs.getUser().getDepartmentID();

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

so a refrence field and put that in the condition after selecting sys_user field?