Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Libraries

HARSHA GOWDA R
Tera Contributor

I am using the following external libraries in a ServiceNow widget:

Currently, I have added these libraries in the Widget Dependencies, and the functionality is working as expected.

However, for better security and maintainability, I want to move these libraries to a UI Script instead of loading them directly from external URLs.

I tried copying the contents of all three files into a UI Script, but it is not working correctly.

Could someone explain the correct way to upload and use these libraries via UI Scripts in ServiceNow, and how they should be referenced inside the widget?




1 REPLY 1

Tanushree Maiti
Giga Sage

Hi @HARSHA GOWDA R 

 

Only impact here is that in future if those JS  is enhanced with feature, it will not be reflected in servicenow .

 

Check this post for your query: 

https://www.servicenow.com/community/developer-forum/how-to-include-an-external-javascript-library-i...

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: