Name
global.RepeatedAlerts
Description
No description available
Script
var RepeatedAlerts = Class.create();
var res = "";
RepeatedAlerts.prototype = {
initialize: function(input) {
var parent = new GlideRecord("em_alert");
parent.addQuery("number", input);
parent.query();
if(parent.next()) {
var current = new GlideRecord("em_alert");
var emAiInsight = new EmAiInsight();
emAiInsight.getSameAlertQuery(current, parent);
res = current.getEncodedQuery();
} else {
gs.log("******* No Record was found for alert number =" + input + "*****");
}
},
get: function() {
return res;
},
type: 'RepeatedAlerts'
};
Sys ID
174c61b45334b300c929ddeeff7b123b