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

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.


I have written business rule in scoped app as well, but still it is not working


kumaril1
Giga Expert

Switch to the scope of that table.



OR


Also please check Application access for the table. it should be "All application scope" and can read should be selected.


Pritam3
Giga Contributor

How to check application access, tried opening application form but didnt see can read.