The Now Platform® Washington DC release is live. Watch now!
07-11-2018 06:25 AM
Need some help here,
For reporting purposes, we have created a database view in the sn_hr_core scope to join the tables task_sla and hr_core_case_workforce_admin.
Here is a screenshot of the database view:
The database view is working fine but when we try to build a report, we get the following error:
Function getSysTimeZone is not allowed in scope sn_hr_core
How do I fix this?
This is not only the case for the HR scope, but for all scoped applications with a database view using task_sla
(I have tested this on my developer instance)
Solved! Go to Solution.
07-11-2018 06:39 AM
I don't think you can fix this directly. It's built in to 4 script includes and 3 business rules that call gs.getSysTimeZone(). The development team either needs to make that function available to scoped apps or create a scoped equiv. and update those 7 files.
I invite you to open an enhancement request! Our product managers DO listen.
Enhancement requests: Tell us how you would improve the ServiceNow product
07-11-2018 06:39 AM
I don't think you can fix this directly. It's built in to 4 script includes and 3 business rules that call gs.getSysTimeZone(). The development team either needs to make that function available to scoped apps or create a scoped equiv. and update those 7 files.
I invite you to open an enhancement request! Our product managers DO listen.
Enhancement requests: Tell us how you would improve the ServiceNow product
07-11-2018 11:33 PM
Thank you Chuck,
I have submitted an enhancement request for this issue. Until the issue has been fixed (hopefully), I will report directly on task_sla table
09-07-2022 01:33 PM
Hi Chuck, is the function still restricted to Global applications (not available to scoped apps) and/or has there been any changes on the gs.getSysTimeZone()?
09-07-2022 01:33 PM
Hi Chuck, is the function still restricted to Global applications (not available to scoped apps) and/or has there been any changes on the gs.getSysTimeZone()?