How do I access Third Party Library? Something lik...
# suitescript
l
How do I access Third Party Library? Something like below define('N/search', 'N/url', 'N/record', 'N/error','./ExtJS'],
m
Yes put the js file in your file cabinet suitescript For example : define(['N/record', 'N/search', 'N/email', '/SuiteScripts/test_LIB_GenericFunctionsSS2.js'], function (record, search, email, testLib) { Or write like this define(["N/record", "N/search", "N/log","./BBE_test_GenericFunctionsSS2.js"], function (record, search, log, testLib) {
l
But it give me permission module scope issue
m
The issue could be related to how the third-party library is structured and how it's being called from your script . If you need to use functions from an external library in your script, you'll need to convert that library into a custom SuiteScript module that can be included in your scripts.
l
For Your Information I am using EXTjs lib...As I can see in 2023.1 release notes from 2024.1 support omfor Extjs will be removed..
That is why I am trying to use that lib manually
But I am not able to.
b
honestly any code that used ext js was qustionable in the first place
you are supposed to license it
even if you did, including it is a pain since it doesnt support amd js and you had to use the sandbox versions to avoid conflicting with netsuite's version