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

Dr Atul G- LNG
Tera Patron
Tera Patron

Could you please share the screen shot? Might be need to change the attributes section. 

*************************************************************************************************************
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]

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

Community Alums
Not applicable

ref_ac_columns_search=true,ref_ac_columns=employee_number,ref_ac_columns_display_value=true

LexaHunger_20_0-1741179771682.png

In above variable we need to display only numbers and set same to variable

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]

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

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