When trying to create a record in a table in another application scope.....system shows an error!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2018 03:07 AM
Hi,
I have created a custom table in GRC:Vendor Risk Management application scope and also a record producer which creates a record on the table.
My requirement is: When a new record is created through the record producer in GRC application scope, correspondingly a new record should be created in core_company table in the Global application scope. I have written a script (on the Record Producer script area) for this purpose which is as follows:
var gr = new GlideRecord('core_company');
gr.initialize();
gr.name = current.name; //variables
gr.status = 'prospect';//variables
gr.insert();
But when the script runs, an error message is displayed on the form of the new record in the table in GRC application scope and a record is not being created in core_company table which is in Global application scope. The error message is as follows:
Create operation on table 'core_company' from scope 'GRC: Vendor Risk Management' was denied. The application 'GRC: Vendor Risk Management' must declare a cross scope access privilege. Please contact the application author to update their privilege requests.
Please help me in completing this. Kindly let me know what I need to perform to make this work.
Thanks & Regards,
Gopi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2018 03:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2018 04:43 AM
Hi Jaspal,
Thank you for the update
I checked the dictionary and values were updated as shown in the screenshot you pasted.
Unfortunately, the error message is still getting displayed and new record is not created in core_company table.
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2018 07:57 AM
Hi,
Please help me out in this.
I am still getting the below error message and record is not getting created in core_company table. Do I need to make any other changes in the instance?
Create operation on table 'core_company' from scope 'GRC: Vendor Risk Management' was denied. The application 'GRC: Vendor Risk Management' must declare a cross scope access privilege. Please contact the application author to update their privilege requests.
Thanks,
Gopi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2018 08:13 AM
For scoped applications, you need to add cross-scope access to your application. in the menu type Application Cross-Scope Access.
From your application scope add the tables that it needs access to for your example:
Source scope: GRC:Vendor Risk Management
Target scope: Global
Target name: core_company
Target type: Table
Operation: write
Status: allowed