Show only selected choices in a List collector variable.

Insider
Giga Guru

I have a variable of type "list collector". 

I want to show only 100 choices in that variable which fetches data from a table of 500 records.

so, my thought is to create a sys property which stores the 100 choices data and to use it in the variable reference qualifier.

I tried building the configuration but didn't work.

Can you help me on this?

 

Thanks

 

Sys property: I just made it String type and gave 5 Sys_id's of 5 records for sample.

reference qualifier: I just used javascript:gs.getProperty(''property name'');

 

But the variable is showing all the 500 records.

1 ACCEPTED SOLUTION

jaheerhattiwale
Mega Sage
Mega Sage

@Insider The ref qualifier should like below

javascript&colon; 'sys_idIN'+gs.getProperty('<PROPERTY NAME>');
jaheerhattiwale_0-1670475597642.png

 

 Note: please make sure to replace the &colon; to : as in image above
 
Please mark as correct answer if this solves your issue.
 
Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

View solution in original post

1 REPLY 1

jaheerhattiwale
Mega Sage
Mega Sage

@Insider The ref qualifier should like below

javascript&colon; 'sys_idIN'+gs.getProperty('<PROPERTY NAME>');
jaheerhattiwale_0-1670475597642.png

 

 Note: please make sure to replace the &colon; to : as in image above
 
Please mark as correct answer if this solves your issue.
 
Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023