List Collector in Service Portal

Talvin Singh1
Kilo Contributor

Hello Reader,

I am having issues working in 'List Collector' variable type in Service Portal.Below is the issue I am facing.

I already have an existing Catalog Item in CMS in which one of the variable is of 'List Collector' type. On selecting another variable (which is of type 'Reference'), the values are populating in the right bucket and no value is available for the user to select in the left bucket.

In Service Portal, the values are populating on selecting an option from the 'Reference' field. But, the issue here is, the user has the access to select more options apart from the already populated values.

[Note: In Service Portal, the 'List Collector' has a similar look of a 'Select Box'. The only difference is, more than 1 option can be selected in List Collector.]

Please provide a solution so that the user in Service Portal is restricted from selecting any other values.

Thanks in advance!

1 ACCEPTED SOLUTION

The new query can be simple, like in the first example 

'group=' + newValue

If that fits your scenario (the table your list collector is referencing, and the records you want to return based on the reference variable record selected).  The second example is a variable name that could be populated by your catalog client script calling a GlideAjax script include.  This is used when the filter criteria is more advanced and needs a server script to process it / GlideRecord to other tables, etc.  When you use this method the variable should contain a comma-separated list of sys_ids.  You can read my full article here, which may help your situation

https://community.servicenow.com/community?id=community_article&sys_id=28040fa4db2788905129a851ca961... 

In CMS you have no values available to select from the left, so that's why I thought you already had this filtering in place - your list collector filter is changed when the reference variable changes, and all of the records that meet that criteria are selected in the right pane.  Are you doing something differently to get this to work in CMS? 

View solution in original post

7 REPLIES 7

Thanks a lot, Brad!

Your solution seems perfect.

Hi Talvin,

that is the default behavior.

It would apply reference qualifier on portal and since on portal it doesn't have left and right slush bucket

Regards
Ankur

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

Shreya Singh3
Tera Contributor

I am getting the same issue can someone please help me with it