Can we pass two parameters of the script include in the List collector Qualifier

Samiksha2
Mega Sage

Hi,

How we can pass two parameters in the list collector advance qualifier.

Thanks

17 REPLIES 17

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

Hi Mahendra,

Values are coming in the Logs. Script include is correct. But in the form it is not coming. 

Hello @samiksha 

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