List Collector Variables - Dependent on a Value of List Collector Variables

keshav77
Tera Contributor

I have lister collector  variable 1 which show  values of sys_class_name=cmdb_ci_business_app  and I want to make another list collector who's value depend upon the selection variable1 value  and only show of  sys_class_name=u_cmdb_busapp_instance which are part of above variable1.

1 REPLY 1

Sujatha V M
Kilo Patron
Kilo Patron

@keshav77  Based on your use case above, please find my implementation steps

 

1. Created a form with two list collector variables 

SujathaVM_0-1726473226237.png

2. List Collector - 1 is linked to a Windows Server table (cmdb_ci_win_server) 

 

SujathaVM_1-1726473913574.png

 

3. List Collector - 2 linked to the same table for demonstration purpose to list only the value selected on the first variable. 

 

Make sure to update the variable value appropriately, javascript&colon; current.variables.<first variable>. I have opted Sys ID for demo purpose. You may filter based on the respective field.

 

 

SujathaVM_2-1726474051353.png

 

Results : 

When no value is selected, 

SujathaVM_3-1726474102789.png

 

On selection of List Collector - 1 value, 

SujathaVM_4-1726474504778.png

 

Reference Link : https://www.servicenow.com/community/developer-forum/advanced-reference-qualifier-on-catalog-item-va...

 

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.