I want to add the below two sys_id in the property and call the property inside the encoded query

Pooja Khatri
Tera Contributor

Hi All , 

 

I have a requirement where in my below script , I am passing two sys_id's in the encoded query .. 

I want to store that sys_id in the property and call that property inside the encoded query in the similar manner.

 

How can I implement this with the below query : 

 

 var grUser = new GlideRecord('sys_user_group');
    grUser.addEncodedQuery("typeLIKEfe0c590fc9d3f0003c0953598e8a66eb^ORtypeLIKE0248ea58c92ff0003c0953598e8a6616^sys_id=" + current.u_lob.toString());
    grUser.query();
    if (!grUser.next()) {
        gs.addErrorMessage(']LOB should always be of type lob or lob_internal');
        current.setAbortAction('true');
    }
11 REPLIES 11

Hi @Jaap - No , I want to store sys_id's  in the property and call that property in the encoded query . 

can you help me with calling the property in the encoded query

Hi @Pooja Khatri ,

 

How did you complete the task as i have a similar requirement so looking for a solution