Scoped GlideAggregate - getValue(String name)

Gets the value of a field.

Table 1. Parameters
Name Type Description
name String The name of the field.
Table 2. Returns
Type Description
String The value of the field.
var count = new GlideAggregate('incident');
  count.addAggregate('MIN', 'sys_mod_count');
  count.addAggregate('MAX', 'sys_mod_count');
  count.addAggregate('AVG', 'sys_mod_count');
  while ( {  
     var min = count.getAggregate('MIN', 'sys_mod_count');
     var max = count.getAggregate('MAX', 'sys_mod_count');
     var avg = count.getAggregate('AVG', 'sys_mod_count');
     var category = count.category.getDisplayValue();
  }"Current category is: " + count.getValue('category'));

Output: Current category is: software