From 15307f4651b07971ac02349bcf5e3654c9cdf9e7 Mon Sep 17 00:00:00 2001 From: chaitaliKundu Date: Wed, 8 Oct 2025 23:51:04 +0530 Subject: [PATCH] Display the Count of active Problem records per Assignment Group Display the Count of active Problem records per Assignment Group. --- .../GlideAggregate/Count active Problem per Assignment | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Core ServiceNow APIs/GlideAggregate/Count active Problem per Assignment 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')); +}