When trying to create a record in a table in another application scope.....system shows an error!!!

Gopi22
Giga Guru

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

6 REPLIES 6

Jaspal Singh
Mega Patron
Mega Patron

Hi Gopikrishnan,



For the table created in GRC application scope can you check below dictionary


find_real_file.png


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


Gopi22
Giga Guru

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


rexked
Tera Expert

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