Email script cross scoping for email Notification?

Les1
Tera Guru

anyone know or able to advise how to provide for cross-scoping in an email script?

 

i have an email script and trying to glide query HR Profile from global (notification triggered by a catalog item, so triggered via RITM table)

 

in the email script, a query i have against the user table works fine, but one just like it that tries to retrieve data from hr profile table does not, so i'm assuming its a cross scope privilege issue. Only thing i'm going on is that the resulting email doesnt appear to pull anything in that part of the query at all, just a blank spot in the resulting email (i.e. no 'undefined' errors or anything, its like its just not there.

 

i was looking at creating an RCA (restricted caller access) record for this but unsure how to set it up as i'm not seeing "email script" as an available Source option.

 

thanks in advance

2 REPLIES 2

mihirlimje867
Tera Guru

Hello @Les1 ,

 

You can create a email script in global scope application and triggerd the notification then check record, target is hr profile in "Restricted Caller Access Privileges"[sys_restricted_caller_access] in this table and set status to allowed. 

 

Then again triggered the notification. It will be worked.

 

Please like if this will helps you.

Thank you.

Allen Andreas
Administrator
Administrator

Hi,

What your seeing doesn't necessarily mean there is cross-scoping issues going on.

What it normally means is that there is something wrong with the script.

I'd recommend looking at your logs to see if what you're thinking is true...is actually true and if not, then you'd want to review the code you are using.

 

You didn't provide anything here for us to review, but alternatively, if you're worried about the cross scoping, you can look into create a script include in your scope that's accessible outside, and call that from your email script and go from there.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!