Can we pass two parameters of the script include in the List collector Qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2022 07:30 AM
Hi,
How we can pass two parameters in the list collector advance qualifier.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2022 07:37 AM
Can you please explain more what you're trying to do / share screenshots?
If this answer is helpful please mark correct and helpful!
Regards,
Christopher Perry
Regards,
Chris Perry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2022 07:55 AM
Hi
I have a script include in which I am adding two parameter,
script include name= getRoles
function name= getProdRole
var roleName = this.getParameter('sysparm_role_name');
var p_dri = this.getParameter('sysparm_callerSysID');
How I will add this in my List collector Reference Qualifier?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2022 07:57 AM
To pass multiple parameters to a script include it would look like:
javascript: new getRoles().getProdRole(sysparm_role_name, sysparm_callerSysID);
If this answer is helpful please mark correct and helpful!
Regards,
Christopher Perry
Regards,
Chris Perry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2022 08:12 AM
Hello,
Thank you for reply.
this is my script
getProdRole: function() {
var gr;
var gec = this.getParameter('sysparm_callerSysID');
var roleName = this.getParameter('sysparm_role_name');
if (roleName == 'Manager') {
roleName = 'owned';
}
var gec = new GlideRecord('u_product');
gec.addQuery(roleName, gec);
gec.query();
while (gec.next()) {
//dri.push(gec.name.toString());
var pri = gec.name.toString();
}
return "sys_idIN" + gr.toString();
//return JSON.stringify(gr);
},
and List collector variable is -
javascript: new getRoles().getProdRole(current.variables.select_the_user, current.variables.select_people_role);
What i am doing wrong?