Including external js library

axelbest
Kilo Contributor

Hello,
is there a way to include an external js library into servicenow instance? I need  to include a pdf making library. 

Just to be clear: i need this library mostly in the backend part of s-now (business rules, script includes, server side...), so i've already found a lot of ways to include a js file - but only on the front-end purposes (portal, ui-actions..).

Some libraries might be installed with npm tool (in normal non-servicenow websites), but is there a way to do this kind of thing on servicenow?

1 ACCEPTED SOLUTION

DScroggins
Kilo Sage

I believe you can only include external libraries using UI Scripts and those would only be available on the client side. Im not aware of a way to include them for use on the server side.

View solution in original post

5 REPLIES 5

Wasif
Giga Guru

Even we have some requirement where an SFDC component library (via the lightening out feature) is to be used in ServiceNow and for that they have code residing in external URLs, which we need to use (as the methods are written in the external file)- we tried to include these via the Client Script (using the <script src >..) but still not able to access the methods...
Are we certain that we cannot import external js files or css and the only way is to put in UI Script and then use the methods?