Name
global.EvtMgmtCustom_PostTransformHandler
Description
Make sure to select Active to activate this script. Advanced script to manipulate the Event object after transform. This script can also be used to abort Event processing, effectively ignoring the event. The script can be used in combination with the EvtMgmtCustom_PostBind_Create and EvtMgmtCustom_PostBind_Update scripts. Use this script with care! Inefficient code may cause a slowdown in event processing. To abort event processing the method should return false.
Script
/**
@Param event - GlideRecord representing the event after transform
@Param origEventSysId - Id of the event. The GlideRecord event parameter is a temporary object, and therefore does not contain the id of the original event.
*/
(function postTransformHandler(event, origEventSysId){
gs.log('PostTransformHandler custom script is active');
// Make any changes to the alert which will be created out of this Event
// Note that the Event itself is immutable, and will not be changed in the database
// event.setValue('source', 'New Source');
// To abort event processing and ignore the event, return false;
// returning a value other than boolean will result in an error
return true;
})(event, origEventSysId);
Sys ID
209bffd07fe4320002d31ccebefa91e4