Name

sn_sow_em.alertHistoryUtils

Description

No description available

Script

var alertHistoryUtils = Class.create();
alertHistoryUtils.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {

  getAlertIdFromAlertHistory: function() {
      var alertHistory = this.getParameter('sysparm_alert_history');

      var gr = new GlideRecordSecure('em_alert_history');
      if (gr.get(alertHistory)) {
          return gr.getValue('alert_sys_id');
      }

      return "";
  },


  type: 'alertHistoryUtils'
});

Sys ID

799f4843eb6d01107bc47660b85228e9

Offical Documentation

Official Docs: