GlideRecord - queryNoDomain(Object field, Object value)

Used in domain separated instances. Similar to query(), runs the query against the table based on the filters specified by addQuery() and addEncodedQuery(), but ignores domains.

This will query the GlideRecord table as well as any references of the table. One argument adds a query string. Usually this is performed without arguments, but a name/value pair can be specified.

Table 1. Parameters
Name Type Description
field Object A field name
value Object A value
Table 2. Returns
Type Description

var rec = new GlideRecord('incident');
while ( { 
 gs.print(rec.number + ' exists');