We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb2acd8 commit 416c7daCopy full SHA for 416c7da
Server-Side Components/Background Scripts/Get Incident Where Caller is VIP.js
@@ -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