Add new values to List Collector

Mohammed
Kilo Contributor

Hey folks,

I have a variable List Collector whose data is populating from a table 'sys_toupan_data'.

On catalog from, I have 2 new values of logged-on user's primary account (account) and secondary account (account_dev) which is not available in the table and is missing in the dropdown. These 2 accounts I need to add to List collector dropdown as options. I am fetching account values through catalog client script, but I don't have idea how to append to dropdown.

How can I achieve this? Any suggestions will be very helpful.

ThankYou.

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you need to create those 2 values in the table being referred by that list collector variable.

Regards
Ankur

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

Hi @Ankur Bawiskar 

As account values are dynamic for every user, I am not allowed to add any account to Table.

Is there a dynamic way to just display account values in the dropdown List Collector?

 

Thanks.

Hi,

Since list collector variable is of type reference it will always show data from the table being referred.

Unless data is present in the referred table it cannot be shown

If you want to show those 2 options in the list collector when the form loads records for that should be present in the table being referred.

Is the list collector referring to sys_toupan_data? then add the required data in this

Regards
Ankur

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

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Mohammed - You can customize the slushbucket and show additional information as long as the field is on the same table.

https://www.servicenowguru.com/system-ui/customizing-slushbucket/