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 10:31 PM
Hello Samiksha,
Could you please check with below script once:
getProdRole: function(userGuid, roleName) {
var recordSysIDs = [];
if (roleName == 'Manager') {
roleName = 'owned';
}
var gec = new GlideRecord('u_product');
gec.addQuery(roleName, userGuid);
gec.query();
while (gec.next()) {
recordSysIDs.push(gec.getUniqueValue());
}
return "sys_idIN" + recordSysIDs.toString();
},
If my answer helped you in any way then please do mark it as helpful. If it answered your question then please mark it correct and helpful.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2022 12:40 AM
Hi Mahendra,
Values are coming in the Logs. Script include is correct. But in the form it is not coming.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2022 10:35 PM
Hello
In reference Qualifier please put the below:
javascript:new getRoles().getProdRole(current.variables.select_the_user, current.variables.select_people_role);
and in attributes please put ref_qual_elements=select_the_user;select_people_role
Thanks