From 9f84c56591d2df0049434204cd027a3e097e2e4f Mon Sep 17 00:00:00 2001 From: Varshitha Date: Wed, 22 Oct 2025 23:41:47 +0530 Subject: [PATCH] Send Email Notification on High-Priority Incidents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sends email when incident priority is high.” --- .../Email_Bounce_Alert_System.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Server-Side Components/Server Side/Email Bounce Alert System/Email_Bounce_Alert_System.js b/Server-Side Components/Server Side/Email Bounce Alert System/Email_Bounce_Alert_System.js index ba1622cc20..6be8345703 100644 --- a/Server-Side Components/Server Side/Email Bounce Alert System/Email_Bounce_Alert_System.js +++ b/Server-Side Components/Server Side/Email Bounce Alert System/Email_Bounce_Alert_System.js @@ -27,6 +27,14 @@ // --- Step 2: Convert the email body into plain text --- var body = current.body.toString().replaceAll('"', ''); + (function execute(inputs, outputs) { + var inc = new GlideRecord('incident'); + if (inc.get(inputs.incident_sys_id) && inc.priority == 1) { + gs.eventQueue('incident.high_priority', inc, inc.caller_id, 'High priority incident detected'); + } +})(inputs, outputs); + + // --- Step 3: Extract email addresses from the content --- var extractedEmails = extractEmails(body);