Using GlideAggregate to get counts of data grouped by multiple fields.
We all know how to use GlideAggregate, right? Here's an example: var ga = new GlideAggregate('cmdb_sam_sw_install'); ga.addAggregate('COUNT'); ga.addQuery('discovery_source', 'ServiceNow'); ga.query(); if (ga.next()){ gs.print('Count: ' + ga.getA...