Display field for a reference variable

Community Alums
Not applicable

Hello ,

We have a reference variables for a user table.

We need to only display UserID in the variable and set the User ID. It is not working with attribute

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@Community Alums 

Display value at sys_user is Name field so you can't change it to some other field.

If you want to see employee_number after selecting the value then that field should be made as Display=True at dictionary level, but I won't recommend this as it will be platform change.

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

View solution in original post

Hi @Community Alums 

 

As already suggested and mentioned, the OOTB user_id display value cannot be changed, and it's not recommended to do so. Additionally, adding the employee number as a variable won't serve the purpose, as the user agent won't know whose employee ID it is.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

6 REPLIES 6

@Community Alums 

I believe I answered your question initially and then other members suggested the same.

Thank you for marking my response as helpful.

If my response helped please mark it correct as well so that it benefits future readers.

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

Pratiksha Lang1
Kilo Sage

@Community Alums got to the dictionary level of the field and check the display value to true, this will make only user id field visible in reference and also the user id will be set. But this is not recommended as this might impact on the entire platform wherever this field is used.