List collector to show email address along with name

Rohit54
Mega Guru

Hi all,

I want to know that whether there is any way through which we can show email address of the user in the list collector field on record producer instead of just name. 

For ex- I want to show Kiel Mubrach (kiel.mubrach@company.com) instead of just Kiel Mubrach in the field when a user is selected from the list in a list collector field.

The table for list collector field is sys_user.

I have read that it can be done something by marking display value true for sys_user table but that is something that will change for all the list collector fields used. I just want to make this change for a particular record producer.

Thanks in advance

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Rohit,

You can add additional fields to the Name such as email, company etc but you cannot remove Name

For adding additional fields you need to update the variable attributes as this

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=name;email,ref_ac_columns_search=true,ref_ac_order_by=name

find_real_file.png

Output:

find_real_file.png

Regards
Ankur

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

View solution in original post

10 REPLIES 10

Narsing1
Mega Sage

Hi,

You need to add like this in the Variable Attributes of the List Collector.

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=name;email,ref_ac_columns_search=true,ref_ac_order_by=name

Thanks,

Narsing

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Rohit,

You can add additional fields to the Name such as email, company etc but you cannot remove Name

For adding additional fields you need to update the variable attributes as this

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=name;email,ref_ac_columns_search=true,ref_ac_order_by=name

find_real_file.png

Output:

find_real_file.png

Regards
Ankur

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

Is there any way Ankur that after I select a user from the list. It should not only show name of the person selected but also name (email). Like here Abel tutter will appear in the box when you select it. However how can I get Abel Tutter (abel@example.com) after selection.

 

Hi Rohit,

Not possible.

It would only show 1 field which is display=true

or

in this case name field on user table as there is no field with display=true

Regards
Ankur

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