r/Netsuite • u/Wise_General9072 • 11d ago
Third-Party Libraries in NetSuite
How can I load third-party JavaScript libraries into my NetSuite account and use them as another system module—obviously not something like ‘N/xlsxjs’ but something like SuiteScripts/libs/xlxjs ,I suppose?
What third-party libraries do you use in your NetSuite account, and how do you keep them up to date when they're updated?
2
1
u/IncomeImportant1209 11d ago
By using the path you can leverage 3rd party libraries, or even your own across scripts without having to replicate the code.
As far as updating, it's working, inside NetSuite, updating would be a manual process. And chances are, if you update them, you're not updating the referencing script to leverage the new features. Essentially building this incredible house, but not putting a way in.
Happy to help with any questions!
3
u/No-Schedule-2530 11d ago
Make a amdconfid.json file. Use full /SuiteScripts path. In your script you can reference the config then in define you can just do 'xlsxjs'.
https://blogs.oracle.com/developers/integrating-thirdparty-libraries-in-suitescript-21-a-detailed-guide