If logged in user is manager then he/she can raise the requests for their sub-ordinates.

Saikeerthana
Tera Contributor

I created a variable set in catalog item. I created a open for field with reference field from User table. If logged in user is manager then he/she can raise the requests for their sub-ordinates as well. How can I achieve this using client script?

1 ACCEPTED SOLUTION

Hi,

it should be present in the advanced ref qualifier of that variable and not client script

find_real_file.png

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

Regards
Ankur

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

View solution in original post

5 REPLIES 5

MounikaK1031261
Tera Contributor

Hi Ankur,
Your script works fine if the logged in user is a manager, the field is showing the list of sub ordinates. If the logged in user is not a manager then the field is showing the list of all users, instead it us supposed to show the logged in user name.
Can you please help me with this.

 

Thank you.