diff --git a/Core ServiceNow APIs/GlideAggregate/Count active Problem per Assignment b/Core ServiceNow APIs/GlideAggregate/Count active Problem per Assignment new file mode 100644 index 0000000000..d395baa642 --- /dev/null +++ b/Core ServiceNow APIs/GlideAggregate/Count active Problem per Assignment @@ -0,0 +1,9 @@ +var probCount = new GlideAggregate('problem'); +probCount.addActiveQuery(); +probCount.groupBy('assignment_group'); +probCount.addAggregate('COUNT'); +probCount.query(); +while(probCount.next()) +{ + gs.print("Count of Problem records :" +probCount.getAggregate('COUNT') + " " + "Per Assignment Group :" + probCount.getDisplayValue('assignment_group')); +}