How to we apply client script to hr agent workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 04:44 AM
I have written this client script for agent workspace view but it’s now now working on workspace getreference not getting case record
how can we fix it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 09:05 AM - edited 02-13-2024 09:09 AM
I can see you have correctly set the UI Type to All, that is the most common reason i see:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0827632
and you are correctly using a callback on your getReference, which again is a common reason for this:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0996487
Likely solution: On the Client Script set the "Isolate Script" field to "True" and that should help resolve the issue.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0960131
Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 09:49 AM
Ui type all
Isolated script true
view workspace still not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 11:14 AM
Hi @waseem shaik ,
you can specify the view for your client script as -> workspace
then write your code which would run only for the workspace view
**Please Hit Correct, Helpful, or like, if you are satisfied with this response.
Thanks & Regards,
Sumanth Meda