From 416c7daa51182abe9ea966638d32a4f08cb693a2 Mon Sep 17 00:00:00 2001 From: Shashank_Jain Date: Thu, 2 Oct 2025 12:07:39 +0530 Subject: [PATCH] Create Get Incident Where Caller is VIP.js /** * Name: VIP Caller Incidents * Type: Background Script * Purpose: Prints all incidents where the caller is a VIP user * Author: Shashank Jain */ --- .../Get Incident Where Caller is VIP.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Server-Side Components/Background Scripts/Get Incident Where Caller is VIP.js diff --git a/Server-Side Components/Background Scripts/Get Incident Where Caller is VIP.js b/Server-Side Components/Background Scripts/Get Incident Where Caller is VIP.js new file mode 100644 index 0000000000..75e1d84d7f --- /dev/null +++ b/Server-Side Components/Background Scripts/Get Incident Where Caller is VIP.js @@ -0,0 +1,14 @@ +/** + * Name: VIP Caller Incidents + * Type: Background Script + * Purpose: Prints all incidents where the caller is a VIP user + * Author: Shashank Jain + */ + +var inc = new GlideRecord('incident'); +inc.addQuery('caller_id.vip', true); // Only VIP callers +inc.query(); +inc.print("Incidents with VIP Callers:"); +while (inc.next()) { + gs.print("Number: " + inc.number + " | Short Description: " + inc.short_description); +}