Skip to content

Commit 9f84c56

Browse files
authored
Send Email Notification on High-Priority Incidents
Sends email when incident priority is high.”
1 parent 1f49bf7 commit 9f84c56

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Server-Side Components/Server Side/Email Bounce Alert System/Email_Bounce_Alert_System.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@
2727
// --- Step 2: Convert the email body into plain text ---
2828
var body = current.body.toString().replaceAll('"', '');
2929

30+
(function execute(inputs, outputs) {
31+
var inc = new GlideRecord('incident');
32+
if (inc.get(inputs.incident_sys_id) && inc.priority == 1) {
33+
gs.eventQueue('incident.high_priority', inc, inc.caller_id, 'High priority incident detected');
34+
}
35+
})(inputs, outputs);
36+
37+
3038
// --- Step 3: Extract email addresses from the content ---
3139
var extractedEmails = extractEmails(body);
3240

0 commit comments

Comments
 (0)