List Collector in Service Portal

Talvin Singh1
Kilo Contributor

In CMS the 'list collector' variable has a left and right panel. But, the list collector does not work the same way in Service Portal. 

How can we filter the list collector based on another variable in Service Portal?

It would be great if you help me reach the solution.

Thanks in advance!

15 REPLIES 15

@Bhoomi Chaudhary 

Can you post this as separate question as this thread is quite older?

Please tag me in your question

Regards
Ankur

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

Madhav18
Mega Expert

Hi Talvin,

Can you quickly check the catalog client script which is populating the list collector in native UI and change the UI Type of client script from Desktop to All

If it helps, please mark 👍 Helpful.

Thanks,
Madhav

Ankur Bawiskar
Tera Patron
Tera Patron

@Talvin Singh 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

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

Abhishek73
Kilo Contributor

Hi @Ankur Bawiskar,

 

What should be the script if we have to pre-poppulate the List collector field on the portal. I have tried setting the list collector field by setting the string value(Comma separated sys_id's) but it is inserting only the last value into the field instead of all the values.

find_real_file.png

 

  • Select all button should insert all the values into the list collector, but it is inserting only last value into the field.

find_real_file.png

  • This is the client script which is used to set the list collector field(asset_details). Answer variable is the string of sys_id's separated by comma. 
    Can you please let me know, to how to set all the values into the list collector by using script.

find_real_file.png

 

refer my blog on the same

you can enhance it for making it work onload or onchange

Dynamically set list collector on change of variable

Regards
Ankur

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