Name

sn_em_ai.AlertUtils

Description

No description available

Script

var AlertUtils = Class.create();
AlertUtils.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
  
  getAlertIdFromAlertHistory: function() {
  	var alertHistory = this.getParameter('sysparm_alert_history');
  	
  	var gr = new GlideRecord('em_alert_history');
  	if (gr.get(alertHistory)) {
  		return gr.getValue('alert_sys_id');
  	}
  	
  	return "";
  },

  type: 'AlertUtils'
});

Sys ID

568bdbbf4fb82300abbb74828110c780

Offical Documentation

Official Docs: