Client script with get reference is not working in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 12:47 AM
I have written a client script for work space using get reference which is working as expected , but in classic UI it is not working. do we need to create new client script for classic ui ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 06:32 AM
no Ui policy are conflicting. global check box is also check .
with out reference script is working in Classic Ui
with reference script is working in workspace
What should i do so that code will work for both classic ui and workspace ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 10:54 PM
please use getReference() with callback and see if it works in workspace
If not then please use GlideAjax.
If my response helped please mark it correct and close the thread so that it benefits future readers.
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-2025 10:07 PM
Can you send the code here?
Please give a try with the GlideAjax.