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

Thanks Derek It is working now I did not give the Target name as table name earlier....that was the issue.



Thank you


Hi 

I'm trying to create a profile in GRC module(sn_grc_profile) from a custom workflow. How do I implement this?

I tried to run it over background script but I get the error message as "Not valid". While tried to create cross-scope access, it is not allowing and shows up an error message, "Global not allowed for cross scope privilege source scope" and "Invalid Insert".

what is the solution for this?

Thanks.