How to display email in the variable when it is a list collector

poornima batchu
Tera Expert

Hi All,

I created two variables which are list collector type from the sys_user table. when I select the user from the list it is displaying the username but for other variable, I want to display the user email. please provide solutions.

poornimabatchu_0-1674124226525.png

 

Thanks in advance

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@poornima batchu 

for the other variable use variable attributes and add email field. it will start showing email when user types something in list collecotr

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=email,ref_ac_columns_search=true

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

6 REPLIES 6

@poornima batchu 

I believe I have answered your original question.

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

@poornima batchu 

if you just want to display email of user selected in 1st list collector then why to make 2nd variable as list collector?

you can make 2nd variable as string type and based on change of 1st variable populate email of users selected

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