how to show name if it is showing sys_id of the user

Harsimranpreet1
Tera Contributor

how to show name of user

3 REPLIES 3

RaghavSh
Kilo Patron

can you paste your code here?

Ideally, getDisplayValue() in server side script can fetch name instead of sys_id.


Raghav
MVP 2023

@Harsimranpreet Kaur is your issue fixed?


Raghav
MVP 2023

MrMuhammad
Giga Sage

Hi,

Can you please explain your question in detail?  

Based on my assumptions of your question I think you might be seeing sys_id in the reference field or list collectors and instead you want to have the Display name of the user. if so then you need to set the display value on the user table. Please follow the instructions mentioned on the below doc link

Select a field as the table display value | Servicenow Docs

Please mark this helpful/correct, if applicable.

Regards,

Muhammad

Regards,
Muhammad