Not able to write GlideRecord On Scoped app table

Pritam3
Giga Contributor

Hi All,

below script in not working, table is scoped app, i am trying to access it from global

tried script include as well.

var ess=new GlideRecord('sn_xxxx_request_temp');

ess.addQuery('u__id',id);

ess.query();

var count=ess.getRowCount();

if(count>=1 )

{

}

count is zero.

Thanks,

Pritam

1 ACCEPTED SOLUTION

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

You can't do that from Global Scope, you have to go into that scope before being able to write.


View solution in original post

5 REPLIES 5

Pritam3
Giga Contributor

Ok now i checked and it is accessible from all scope and can read and can update are also true.