cross scope issue [easy points]

juan42
Mega Contributor

Hi Experts!

I am trying to perform a pretty standard cross-scope create/write operation with a script.

 

What am I doing wrong?

the weird part is that I am allowed to create records on the target table, but I cant edit any values on the record created. so the following code does the following:: 

 

var gr = new GlideRecord('TARGET_TABLE');
var candidateId = 'SYS_ID1';
var jobListingId = 'SYS_ID2';
gr.initialize();
gr.candidate=candidateId; // throws error
gr.job_listing=jobListingId; // throws error
gr.prescreen_notes='test' // throws error
gr.insert();

 

 

errors being thowng:

Access to api 'put(TARGET_TABLE.candidate)' from scope 'x_JELLY_RT5_QQ' has been refused due to the api's cross-scope access policy
Access to api 'put(TARGET_TABLE.job_listing)' from scope 'x_JELLY_RT5_QQ' has been refused due to the api's cross-scope access policy
Access to api 'put(TARGET_TABLE.prescreen_notes)' from scope 'x_JELLY_RT5_QQ' has been refused due to the api's cross-scope access policy

 

 

Below are the application access configuration for the target table

find_real_file.png 

I also made the following cross scop privilege, I made one for both create and write

find_real_file.png

what am I doing wrong!?!?

1 REPLY 1

Anil Lande
Kilo Patron

Hi,

Create cross scope privilege's record for All operations like 'Create', 'Read', 'Write' and if needed 'Delete'.

I guess you have created only for 'Create' operation.

find_real_file.png

 

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande