GlideAggregate - setGroup(Boolean b)

Sets whether the results are to be grouped.

Table 1. Parameters
Name Type Description
b Boolean Set to true if grouping is true, otherwise set to false.
Table 2. Returns
Type Description
void

Scoped equivalent

To use the setGroup() method in a scoped application, use the corresponding scoped method:Scoped GlideAggregate - setGroup(Boolean b).

var ga = new GlideAggregate('incident');
ga.addAggregate('COUNT', 'category');
 
ga.setGroup(true);