Skip to content

Commit 410cfe0

Browse files
Create code.js
1 parent f02a2f5 commit 410cfe0

File tree

1 file changed

+9
-0
lines changed
  • Core ServiceNow APIs/GlideRecord/Fetch active incidents assigned to a specific group.

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
var gr = new GlideRecord('incident');
3+
gr.addQuery('active', true);
4+
gr.addQuery('assignment_group.name', 'Network Support');
5+
gr.query();
6+
7+
while (gr.next()) {
8+
gs.info('Incident Number: ' + gr.getValue('number'));
9+
}

0 commit comments

Comments
 (0)