Unable to create Choices from Scoped Application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2020 11:43 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2020 12:06 AM
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
Mohit Kaushik
ServiceNow MVP (2023-2025)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2020 01:00 AM
Yes i found out that but how can i make it working?Any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2020 12:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2020 01:01 AM
Hi Tony,
yes i have provided cross scope application access for choice table but no luck.