How to delete a scoped application record from a global application?

Ohki_Yamamoto
Tera Guru
I am trying to delete a record in the sn_customerservice_task table of the Scoped application in GlideRecord from the global scope scheduled job.
 
The delete_access for the sn_customerservice_task table is turned on, but when I run the scheduled job, it says "Delete operation against 'sn_customerservice_task' from scope ' rhino.global' has been refused due to the table's cross-scope access policy" error.
Ohki_Yamamoto_0-1686911006154.png

 

 
Here is the script I am running
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
var gr = new GlideRecord('sn_customerservice_task');
gr.addQuery('sys_id','04ea92b4875e2150d917fe28dabb35f6');
gr.query();
if(gr.next()){
gr.deleteRecord(); //delete
}
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
 
Note that for cross scope privileges[sys_scope_privilege], we are aware that records with Source Scope set to global cannot be created.
 
Other than this, I do not believe there are any other settings that are required, referring to the following KB and others.
 
Is there any way to delete the records in the sn_customerservice_task table of the Scoped application from the global scope?
I would appreciate it if you could let me know if there is anything I am missing to consider.
 
3 REPLIES 3

Community Alums
Not applicable

Hi @Ohki_Yamamoto ,

You might want to check the cross scope priveleges :

  1. Open the Application Cross-Scope Access module by navigating to System Application> Application Cross-Scope Access
  2. Search for all records with a Status field value of Requested
  3. To grant access, an admin user must click the Open record icon to open the record for editing.
  4. Change the Status to Allowed then click the Update button.
SandeepDutta_0-1686911284840.jpeg

 

The above case is only when the author chose to set runtime access to enforcing. By default, runtime access is set to tracking on the application and at runtime, cross scope privilege records are automatically granted access.

 

Thank you very much.

We have checked cross scope privileges[sys_scope_privilege] and there is not a single record with a value of "requested" in the "status" field. (They are all Allowed.)

 

Ohki_Yamamoto_0-1686911629315.png

 

JitendraT
Tera Expert

hi @Ohki_Yamamoto May I ask, if you have managed to resolved this problem. If yes, please share your input.

I am facing the similar issue. Thanks!