Name

global.getLatestUpgradeEvent

Description

No description available

Script

function getLatestUpgradeEvent() {
  var gr = new GlideRecord('sys_performance_event');
  gr.addQuery('event_type', 'upgrade');
  gr.orderByDesc('sys_created_on');
  gr.query();
  if (gr.next())
  	return gr.sys_id;
  
  return '';
}

Sys ID

1861c7c73b013200956c47b334efc4ba

Offical Documentation

Official Docs: