Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Update or delete event from scoped application

rubesh_u
Tera Expert
if(current.operation() == 'update'){
I couldn't able to read sysevent table from scoped application eventhough i gave application cross scope privilidge and application access is read.

// change the state of the previous events
var grSysEvent = new GlideRecord('sysevent');
grSysEvent.addQuery('instance',current.sys_id);
grSysEvent.query();
// if(gr.next()){
// gs.info(grSysEvent.getValue('state'));
// }
gs.info('RUNNED');
}
0 REPLIES 0