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.

Unable to create Choices from Scoped Application

Ankit43
Kilo Explorer

HI All,

I have a scoped application and a Record producer. Record producer creates a choice in a choice in a field which is coming from choice table.

To update that choice in choice table i have written producer script (The script works fine when i try it from Global scope) but i am unable to do so and i am getting below error:

Security restricted: Access to api 'setValue(sys_choice.label)' from scope 'my_custom_scope' has been refused due to the api's cross-scope access policy
Security restricted: Access to api 'setValue(sys_choice.value)' from scope 'my_custom_scope' has been refused due to the api's cross-scope access policy

 

Please suggest/ Thanks in advance.

 

Regards

Ankit

5 REPLIES 5

Sukraj Raikhraj
Kilo Sage

you have to configured cross scope mentioned by Tony , if that doesn't help, you may have to configure the table access policy to allow web access. (Configure Table --> Application Access Tab .  Allow access to table via web services or Accessible from all scope)