The CreatorCon Call for Content is officially open! Get started here.

How to dispaly user ID on List collector using variable attributes?

Ash41
Kilo Sage

Hi Team, 

 

I'm using the below variable attribute on list collector, I'm able to see the User ID and Name in search. 

 

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=user_name,ref_ac_columns_search=true,ref_ac_display_value=false

 

But When we select the record from dropdown, I want to see User ID, instead Name. For example below it will show Akash Kumar once I select the record, it should show the user_name (kumar123) user id. Please suggest.

Ash41_0-1666081562717.png

@Ankur Bawiskar 

 

1 ACCEPTED SOLUTION

Kalyani Jangam1
Mega Sage

Hi, you have to make display value of user id field is false in sys_user table.

View solution in original post

4 REPLIES 4

Kalyani Jangam1
Mega Sage

Hi, you have to make display value of user id field is false in sys_user table.

Thank you, I got it

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Do the below:-

 

Go to the sys_user table and configure dcitionary

 

For here make user_name display as true:-

 

Saurav11_0-1666093021532.png

 

And the name field display as false.

 

Please mark my answer as correct based on Impact.

Ankur Bawiskar
Tera Patron
Tera Patron

@Ash41 

The only way to show user id once record is selected is to make User ID (user_name) as Display=true on sys_user table.

But remember this will be a platform level change and it will start showing user id on form fields whichever refers to user table

Please discuss this with your customer if this is really required.

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