//JWJ0215 2024 // 3. Cancel all scheduled reports ***sysauto_report.LIST*** set to active=false and run_type=5 on_demand ClearUserLog(); gs.setSession.setStrictQuery(true); var schedreport = new GlideRecord ('sysauto_report'); schedreport.addEncodedQuery(active=true); schedreport.query(); UserLog("found " + schedreport.getRowCount() + " reports to update."); while (schedreport.next()){ UserLog("changing " + schedreport + " records to active-false."); schedreport.active = 'false'; schedreport.update(); UserLog('Post Upgrade 3 complete' + schedreport); } gs.info('Post Upgrade 3 complete '); // was gs.info