Skip to content

Commit 766d3fa

Browse files
VIP-caller-incidents.js
1 parent eb2acd8 commit 766d3fa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Name: VIP Caller Incidents
3+
* Type: Background Script
4+
* Purpose: Prints all incidents where the caller is a VIP user
5+
* Author: Shashank Jain
6+
*/
7+
8+
var inc = new GlideRecord('incident');
9+
inc.addQuery('caller_id.vip', true); // Only VIP callers
10+
inc.query();
11+
inc.print("Incidents with VIP Callers:");
12+
while (inc.next()) {
13+
gs.print("Number: " + inc.number + " | Short Description: " + inc.short_description);
14+
}

0 commit comments

Comments
 (0)