How to we apply client script to hr agent workspace

waseem shaik
Tera Contributor

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 

IMG_3535.png

3 REPLIES 3

Paul Curwen
Giga Sage

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

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

Ui type all 

Isolated script true

view workspace still not working 

Sumanth16
Kilo Patron

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