The CreatorCon Call for Content is officially open! Get started here.

Best practive to Remove GlideRecord from ACL and use conditional checks ?

Snehal13
Kilo Sage

I have an ACL on sc_req_item table as below to allow read access to the RITM for sc task approvers.

How to replace GLideRecord with ACL conditions so that it still grants read access to the RITM and variables on it for sc task approvers

 

    var app_obj = new GlideRecord('sysapproval_approver');
    app_obj.addQuery('approver', gs.getUserID());
    app_obj.addQuery('sysapproval', current.sys_id);
    app_obj.query();
    if (app_obj.next()) {
        return true;
    }
    return false;

 

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Snehal13 

this is duplicate question, please delete this

your earlier question already has a response

How to Avoid GlideRecord in ACL 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader