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
void
var rec = new GlideRecord('incident');
rec.query(recResponse);
 
function recResponse(rec) {
  while (rec.next()) { 
   alert(rec.number + ' exists');
  } 
}