Source descriptor is empty while recording access for table sn_hr_le_case: no thrown error

GhitaB
Tera Contributor

Hi everyone! please i have a question i ve created an notification for only hr tables and also i ve created an email script for it , and they re all in the global scope , but when testing this notification for hr lifecycle events cases it showing this error "Source descriptor is empty while recording access for table sn_hr_le_case: no thrown error" but it s working fin for other sn_hr table ? how can i solve this issue

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@GhitaB 

why did you create notifications, email scripts in global scope?

You should create them in the correct HR Lifecycle event scope.

There will be cross scope access issues going forward.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

cause it s including other table that are not in the HR lifecycle events scope

 

when changed everything to human ressources core , i m getting this error instead "Access to api 'setWorkflow' from scope 'sn_hr_core' has been refused due to the api's cross-scope access policy. Access Details: setWorkflow can only be called from within the same Scope as the Table on which it is called. Table's Scope was: "Global", but executing Scope was: "Human Resources: Core"."

@GhitaB 

does your notification/script use setWorkflow(false) anywhere?

setWorkflow(false) will only work when the script and the table on which setWorkflow(false) is applied are in same scope.

Example: a business rule in HR Core scope cannot use setWorkflow(false) on GlideRecord object of Case table (Customer Service)

If my response helped please mark it correct and close the thread so that it benefits future readers.

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