The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Background Script accessing scoped table

wfurman
Mega Contributor

I am having a problem access scoped tables from Background Scripts.   I can create a new GlideRecord, but then it fails as soon as I try to call a method query().   Does anyone have a successful example on how to access a scoped application table with either global scope or application scope selectee in a Background Script?

1 REPLY 1

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Wright,



What is the exact error you are getting. I'm assuming your table is denied to be accessed from the other scope. Here is the navigation steps to update the access settings so that the current table can be accessed from other scope.


In navigation filter type table.list->on the header right click and then configure->table->You should be able to see the application access settings. Make sure accessible from is selected "to all other scopes" and can read is checked.


http://wiki.servicenow.com/index.php?title=Application_Access_Settings#gsc.tab=0