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

Mohit Kaushik
Mega Sage
Mega Sage

Hi Ankit,

That is happening as you are trying to modify the choice table out of the scope, it is not configurable outside global scope. And the security rules are stopping you to update it.

 

Thanks,

Mohit Kaushik

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

Yes i found out that but how can i make it working?Any suggestions?

Tony Chatfield1
Kilo Patron
Hi, have you configured a cross scope application privilege/policy.

Hi Tony,

yes i have provided cross scope application access for choice table but no luck.