Name
global.GroupingProduceVirtualHook
Description
In this hook the user can define the logic how the virtual alert should look like. the virtual parameter is the GlideRecord of the virtual, and the groupAlertIDs is comma separated string for the alerts in the group. in the getVirtual method, there is need to set the Virtual fields with all the alerts fields so the virtual will include all the relevant data.
Script
var GroupingProduceVirtualHook = Class.create();
GroupingProduceVirtualHook.prototype = {
initialize: function() {
},
getVirtual : function(virtual, groupAlertIDs) {
return virtual;
},
type: 'GroupingProduceVirtualHook'
};
Sys ID
a76d1bb2c712001049a0362c14c2609b