On Sysevent global table glide record is not working in scoped application

sindhubhargavi
Kilo Contributor

if((previous.state == 6 && current.state == 3) || (previous.state == 6 && current.state == 10)){

  gs.addInfoMessage("hello");

  var g = new GlideRecord("sysevent");

  g.addQuery('parm1',current.sys_id);

  g.addQuery('state','ready');

  g.query();

  gs.addInfoMessage("hello"+g.getRowCount());

  while(g.next()){

  g.deleteRecord();

  }

In the above code GlideRecord is not working. I am geeting error that " Read operation against 'sysevent' from scope 'sn_customerservice' has been refused due to the tables cross-scope access policy".

If any one know the solution please let me know.

Thanks

1 ACCEPTED SOLUTION

Welcome


If your question is answered , please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.


View solution in original post

3 REPLIES 3

snehabinani26
Tera Guru

Hi Sindhu,



CHeck the sysevent table entry. Enable the can read permission.



find_real_file.png


Thank you.Working now


Welcome


If your question is answered , please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.