From f02a2f5a3c054fb91115562a73e5edf92d75eede Mon Sep 17 00:00:00 2001 From: shivamvish160 <108731648+shivamvish160@users.noreply.github.com> Date: Wed, 1 Oct 2025 19:41:42 +0530 Subject: [PATCH 1/2] Create README.md --- .../README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Core ServiceNow APIs/GlideRecord/Fetch active incidents assigned to a specific group./README.md diff --git a/Core ServiceNow APIs/GlideRecord/Fetch active incidents assigned to a specific group./README.md b/Core ServiceNow APIs/GlideRecord/Fetch active incidents assigned to a specific group./README.md new file mode 100644 index 0000000000..1e2554d340 --- /dev/null +++ b/Core ServiceNow APIs/GlideRecord/Fetch active incidents assigned to a specific group./README.md @@ -0,0 +1,2 @@ +This script basically built to pull active incidents for a particular group in order to act quickly. +Demo script retrieves all active incidents assigned to the "Network Support" group. From 410cfe0f9e2ff17fb1dccba5e962d6bb0b74520d Mon Sep 17 00:00:00 2001 From: shivamvish160 <108731648+shivamvish160@users.noreply.github.com> Date: Wed, 1 Oct 2025 19:42:48 +0530 Subject: [PATCH 2/2] Create code.js --- .../code.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Core ServiceNow APIs/GlideRecord/Fetch active incidents assigned to a specific group./code.js diff --git a/Core ServiceNow APIs/GlideRecord/Fetch active incidents assigned to a specific group./code.js b/Core ServiceNow APIs/GlideRecord/Fetch active incidents assigned to a specific group./code.js new file mode 100644 index 0000000000..e5b58d7550 --- /dev/null +++ b/Core ServiceNow APIs/GlideRecord/Fetch active incidents assigned to a specific group./code.js @@ -0,0 +1,9 @@ + +var gr = new GlideRecord('incident'); + gr.addQuery('active', true); + gr.addQuery('assignment_group.name', 'Network Support'); + gr.query(); + + while (gr.next()) { + gs.info('Incident Number: ' + gr.getValue('number')); + }