How to use encoding.js
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2022 09:15 PM
I want to create a CSV file in SJIS with a script.
In doing so, I want to use the encode.js library.
https://github.com/polygonplanet/encoding.js
Is there a way to use such a library with ServiceNow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2022 09:42 PM
@KS18 Yes there is way to include the JS libraries in servicenow.
Create a UI script and add the JS code to it. Then in service portal widget you can add the ui script as dependency.
Please try this.
Please mark correct or helpful answer based on impact.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2022 10:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2022 10:09 PM
@KS18 script include is server side script right. JS might be client side code.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2022 10:12 PM
Is it not possible to put the library code in a separate ScriptInclude?