Parameters
NameTypeDescription
eventobjectThis event object contains information about where was the refresh fired, it can be when user click the refresh button of the UI or when send UI messages from other side.
Samples
 
//register external messages
sys.logs.info(JSON.stringify(event));
if(event.sourceType == 'UI_MESSAGE') {
  // register action
}