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 b8e431c commit ec20ea1Copy full SHA for ec20ea1
Server-Side Components/Background Scripts/To check incidents having a VIP caller/VIP Caller List Script.js
@@ -0,0 +1,15 @@
1
+var inc = new GlideRecord('incident');
2
+inc.addQuery('caller_id.vip', true); // Only VIP callers
3
+inc.query();
4
+
5
+gs.info("Incidents with VIP Callers:");
6
+while (inc.next()) {
7
+ var callerName = inc.caller_id.getDisplayValue(); // Get caller name
8
+ gs.info(
9
+ "Number: " + inc.number +
10
+ " | Caller: " + callerName +
11
+ " | Short Description: " + inc.short_description +
12
+ " | Priority: " + inc.priority +
13
+ " | State: " + inc.state
14
+ );
15
+}
0 commit comments