Scripted Choice list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2018 02:35 AM
Hello,
I have a script seen below to return values from a table. I want to use this script to create a choice list. Where do I need to put the script (Its a client callable script include)
function bsFilter(bsCategory,bsCatalogue){
var lookup,
list = [],
returnString;
lookup = new GlideRecord("my_table");
lookup.addQuery("my_table",bsCategory);
lookup.addQuery("my_table",bsCatalogue);
while(lookup.next()){
list.push(lookup.getUniqueValue());
}
returnString = "sys_idIN"+list.join(',');
return returnString
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2018 03:01 AM
Seems your working with a Reference field, not choice list.
Look into Reference qualifiers