Errors due to the api's cross-scope access policy

Riro1
Kilo Contributor

Hello! I tried running this code and got these errors. I tried to find a problem here but couldn't fix it so I guess I have no choice but to asks for the experts here:

THE CODE:

var gr = new GlideRecord('sys_transform_entry');
gr.initialize();
gr.source_table = "x_621597_service_o_service_one_import";
gr.target_table = "x_621597_service_o_service_one";

gr.source_field = "bill_add";
gr.target_field = "billing_address";
gr.map = "d53664c787a3011032bfcaaf8bbb3567";
gr.insert();

THE ERROR:

Security restricted: Access to api 'put(sys_transform_entry.source_table)' from scope 'x_621597_service_o' has been refused due to the api's cross-scope access policy
Security restricted: Access to api 'put(sys_transform_entry.target_table)' from scope 'x_621597_service_o' has been refused due to the api's cross-scope access policy
Security restricted: Access to api 'put(sys_transform_entry.source_field)' from scope 'x_621597_service_o' has been refused due to the api's cross-scope access policy
Security restricted: Access to api 'put(sys_transform_entry.target_field)' from scope 'x_621597_service_o' has been refused due to the api's cross-scope access policy
Security restricted: Access to api 'put(sys_transform_entry.map)' from scope 'x_621597_service_o' has been refused due to the api's cross-scope access policy
Security restricted: Create operation against 'sys_transform_entry' from scope 'x_621597_service_o' has been refused due to the table's cross-scope access policy

THE SITUATION:

I run it in global and there was no problem but I need to put this code in the scoped application and obviously, it got an issue with the cross-scope access policy. 

Anyone can help me with this?

28 REPLIES 28

Thanks for the reply sir. I actually tried that a while ago but sadly it didn't do anything. The same error is still there.

Hi,

Did you try to logout and login again?

You are doing GlideRecord to field map table

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

hello, thank you so much for helping me on this. I tried 2 times but the errors are still there.

Im kinda desperate so is it possible if I can send you my login details so you can check it too?

 

Don't share that

The map you are using is in which scope?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

The Transform Map is in the scoped application. 

 

I saw this post: https://community.servicenow.com/community?id=community_question&sys_id=a819baef1be7ec50ed6c9979b04bcbf4

 

and it says there that there are tables refusing the cross-scope access policy and I just have to click "Track in Update Sets".

I looked the "sys_transform_entry" table and there is no "Track in Update Sets" button in the Related Links. I tried to search on how to turn it on but still could not find the answer.