Query_Range acl

EshikaAgrawal
ServiceNow Employee
ServiceNow Employee

 

Hi,

I have a doubt about query_range ACLs in code. How can we determine whether we should check canRead() or query_range?

Suppose a table has both read and query_range ACLs. Now, in code, if we have something like:

 

 
var gr = new GlideRecord('table_name'); gr.addQuery('some_field', value); gr.query();

How do we decide whether to check canRead() or query_range?
Also, is there anything in GlideRecord, like canRead(), that lets us check for query_range ACL specifically?

1 REPLY 1

Rafael Batistot
Tera Sage