How to integrate custom Javascript SDK in Scoped app?

bachhav
Kilo Guru

We have developed the Javascript SDK using ES6 for our product. I want to use this SDK in the ServiceNow scoped app.

 

Based on my primary research, the ES6 class syntax won't work in ServiceNow backend scripts (like Script Includes) because ServiceNow runs on a Rhino-based JavaScript engine, which does not fully support ES6. However, we can use it in client scripts if running in a modern browser.

This SDK have functions to get and post data to the product. I want to use them in scoped app. I mean integrate the SDK in script include may be one option but this is not working due to ES6 class syntax.

Let me know how I can do this?

 

Thanks in advance.

0 REPLIES 0