Client script with get reference is not working in workspace

akshaygadew
Tera Contributor

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 ?

7 REPLIES 7

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 ? 

@akshaygadew 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Anil Nemmikanti
Giga Guru

Can you send the code here?


Please give a try with the GlideAjax.