How to use GlideAjax in Read ACL instead of GlideRecord
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2023 06:04 AM
i All,
I m having the below read ACL on RITM table Description field. As part of health scan, glide record should not be used, and need to replace with Glide Ajax. I am new to Glide Ajax, could anyone please guide me how to replace the below read ACL.
var appgr;
grd= new GlideRecord('sysapproval_approver');
grd.addQuery('document_id', current.sys_id); //Fetching for approval record
grd.query();
while(grd.next())
{
appgr= grd.group.assignment_group;
if(gs.getUser().isMemberOf(appgr)) //checking if loggedin user is member of approval gr
{
answer= true;
}
}
if ((gs.getUser().hasRole('u_confidential')) || (sc_req_item.opened_by == gs.getUserID()) || (sc_req_item.request.requested_for == gs.getUserID()))
{
answer = true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2023 12:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 02:18 AM
Hi @ricker ,
Ok, What is the other approach to be used in ACLs other than Gliderecord , GlideAggregate to fetch the data.
We are strongly used not to use Gliderecord in ACLs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 01:52 PM
I don't think there is one.