Decision Table script is not working in Scoped Application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
57m ago
Code:
var response = '';
Error:
Execute operation on API 'ScriptableDecisionTableAPI.getDecision' from scope 'Custom Scope' was denied. The application 'Custom Scope' must declare a cross scope access privilege. Please contact the application author to update their privilege requests.
Can anyone please help on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
23m ago
Hi @sasikanth2
- Modify the status of Application Cross-Scope Access record:
Navigate to System Applications > Application Cross-Scope Access.
Filter the list where Status is Requested.
Locate the row showing your Source Scope (your Custom Scope) and Target Name as ScriptableDecisionTableAPI.getDecision.
Open the record, change the Status to Allowed, and click Update.
2.If it is not there , manually create it.
Navigate to System Applications > Application Cross-Scope Access ->Click New.
Fill out the form with these configuration details:
- Source Scope: Your Custom Scope Name
- Target Scope: Global
- Target Type: Scriptable
- Target Name: ScriptableDecisionTableAPI.getDecision
- Operation: Execute API
- Status: Allowed
Click Submit.
3. Clear the cache by typing cache.do in navigator and test
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti