Decision Table Script is not working in Scoped application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi Community.
I have created a decision table one of the custom scope, and trying to fetch the data from that decision using the code mentioned below. I'm always getting cross scope errors as shown. please suggest what can be done here.
Error:
GlideSession message was modified by sanitization. [message=Execute operation on API 'ScriptableDecisionTableAPI.getDecision' from scope '{Custom App}' was denied. The application '{Custom App}' must declare a cross scope access privilege. Please contact the application author to update their privilege requests.][sanitized=Execute operation on API 'ScriptableDecisionTableAPI.getDecision' from scope 'Qualys Core' was denied. The application 'Qualys Core' must declare a cross scope access privilege. Please contact the application author to update their privilege requests.]
Security restricted: Execute operation on API 'ScriptableDecisionTableAPI.getDecision' from scope 'Qualys Core' was denied. The application '{Custom App}' must declare a cross scope access privilege. Please contact the application author to update their privilege requests.
code as mentioned below:
var grCompany = new GlideRecord('core_company');
if (grCompany.get(memberFirm)) {
var inputs = {};
inputs['u_member_firm'] = grCompany; // Reference, Sys ID of the record
var dt = new sn_dt.DecisionTableAPI();
var response = dt.getDecision('472a3a761b858b502902c9d1604bcb81', inputs);
var result_elements = response.result_elements;
var u_group = result_elements.u_group.getValue(); // Reference
return u_group;
} else {
return "Not found";
}
[0:00:00.047] Total Time
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
To resolve this error, you must approve the Restricted Caller Access (RCA) request that was automatically generated when your application tried to call the ScriptableDecisionTableAPI.getDecision API
- Navigate to RCA Privileges: In the filter navigator, go to System Applications > Application Restricted Caller Access.
- Locate the Request: Look for a record with the following details:
- Source Scope: Your <Custom App>.
- Target Scope: Qualys Core.
- Target Name: ScriptableDecisionTableAPI.getDecision.
- Status: Requested or Invalidated
- Approve Access: Open the record and change the Status to Allowed.
- Save the Record