problem with HR table when try to read record

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2019 06:23 PM
Hi everyone,
I have a problem with field ' subject_person_hr_profile ' from table ' sn_hr_core_case '
I need to set default value for this field , by default value : javascript:gs.getUserID();
error message appear in the top of form >> " Read operation on table 'sn_hr_core_profile' from scope 'Global' was denied because the source could not be found. Please contact the application admin. "
How I can solve this issue ? note : this is a security issue , but i dont know how i can solve this issue ?
please save my day and thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2019 07:45 PM
Hi Saif,
Did you try setting some hardcoded sys id value there?
Also in which scope did you capture the default value?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2019 07:49 PM
try
javascript:gs.getUser().getID();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2019 10:52 PM
Hi Saif,
This happens because the ACL added for the hr table restricts the read operation from the scope you are working on.
Could you please check from left hand navigator:
Access Controls(ACL) : Name-->*hr(check your table name) : Operation -->read
Please let me know, what ACL has added for the read operation for your table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2019 10:55 PM
Hi Saif,
Similar issue got resolved in the following link:
One option
1) For the table sn_hr_core_case, There is a related list, Application Access, Where we can select an option Accessible from 'All application scope'.