Skip to content

Commit ec20ea1

Browse files
Create VIP Caller List Script.js
1 parent b8e431c commit ec20ea1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)