- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2019 01:00 AM
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?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2019 10:33 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2023 07:19 PM
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?