Hi Team, I need help with Lifecycle Event Approval Activity

harishkolla
Tera Contributor

When I tried to submit a LE case I am getting this error because of which the approval are not triggering

 

Error :

 

Do we need to create approvals?(247b9783dbea9110532cec62ca9619d1): org.mozilla.javascript.WrappedException: Wrapped org.mozilla.javascript.JavaScriptException: com.glide.script.fencing.access.ScopeAccessNotGrantedException: read access to sn_hr_le_activity not granted (sys_script_include.365eca63c0a8016600069528aee5affb.script; line 117)

 

harishkolla_1-1667053327889.png

 

Kindly help on this, thank you in Advance

 

5 REPLIES 5

Sagar Pagar
Tera Patron

Hi @harishkolla,

 

Make sure your workflow & Script include should be in same application scopes.

 

Thanks,
Sagar Pagar

The world works with ServiceNow

Hi Sagar

Thank you for your quick reply, the script include is in global scope and can be accessible from all scopes,

Also I have verified same in UAT and my PDI as well, everything looks same.

 

I don't know where I am missing that

Hi,

Your workflows & sub-workflows are in same application scope?

 

Thanks,

Sagar Pagar

The world works with ServiceNow

No, main flow is in LE Scope and Subflow is in HR Core scope