Scoped GlideAggregate - addNullQuery(String fieldName)

Adds a null query to the aggregate.

Table 1. Parameters
Name Type Description
fieldName String The name of the field.
Table 2. Returns
Type Description
GlideQueryCondition The scoped query condition.
var count = new GlideAggregate('incident');
  count.addNullQuery('short_description');
  count.query();   // Issue the query to the database to get all records
  while (count.next()) {   
     // add code here to process the aggregate
  }