Unable to call Ui script in Workspace ui action level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2026 12:43 AM
Please find the workspace ui script
Ui script :
Same script is working as expect in dev instance when comes to QA it is failing saying that
TypeError: Cannot read properties of null (reading 'logTime')
at eval (eval at get (GlideScopedScript.js:49:27), <anonymous>:9:24)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2026 07:05 AM
Hi @pavanmallur
Are you sure they are the same? From above it says the type is "Desktop". According to the SN documentation:
https://www.servicenow.com/docs/r/api-reference/GUIScriptsAPI.html
It can either be All or Mobile/Service portal but not Desktop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2026 07:48 AM
Hi @pavanmallur
It seems your full code is not there.
It seems , in QA, Number or MS/Status ( if those are fetched by g_form.getValue()) fields are not added in the form lay out.
Add it - it will work.
"Cannot read properties of null" errors
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti