Clientside GlideRecord - query(Function responseFunction)

Runs the query against the table based on the addQuery() filter. This queries the GlideRecord table as well as any references of the table.

Table 1. Parameters
Name Type Description
responseFunction Function The response function for the Ajax callback.
Table 2. Returns
Type Description
var rec = new GlideRecord('incident');
function recResponse(rec) {
  while ( { 
   alert(rec.number + ' exists');