Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Get user details in the List collector variable on the catalog form

Samiksha2
Mega Sage

Hi,

I have a custom table(u_userslist) in which two fields are of List type(Primary users and Backup users). 

I want to auto-populate all the selected Primary users and Backup users in the List collector variable(all_users) on the catalog form.

Thanks

1 ACCEPTED SOLUTION

Hi,

this variable "all_users" refers to sys_user

So this variable should auto-populate with Primary and Backup users.

you can use onChange on select box reference variable + GlideAjax and fetch the primary + backup users and set it on list collector variable

refer my blog for the same; If my blog helps please mark it helpful and also bookmark it

Dynamically set list collector on change of variable

Regards
Ankur

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

View solution in original post

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

since it's list collector and it's a reference it can show only 1 value at a time once record is selected.

Whichever field is marked as Display=true on u_userslist will be shown once you select the value

Regards
Ankur

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

Hi @Ankur Bawiskar,

I want to show the users selected in the below fields in the u_userslist table
find_real_file.png

to the catalog form.

 

Is it not possible?

Hi,

So you have a catalog item and list collector variable which refers to u_userslist  table

So what's the challenge?

I already mentioned that 

Whichever field is marked as Display=true on u_userslist will be shown once you select the value

Regards
Ankur

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

Here we have a select box(reference to u_userlist). Whenever we are selecting any record from the dropdown based on that All users will auto-populate with  Primary and Backup.