dmashburn3
10/11/2017, 2:10 PMshea
10/11/2017, 2:14 PMNLAPISUBMITCSVIMPORT_IS_ONLY_SUPPORTED_IN_SCHEDULED_RESTLET_AND_BUNDLE_INSTALLATION_SCRIPTS
al3xicon
10/11/2017, 2:14 PMal3xicon
10/11/2017, 2:14 PMal3xicon
10/11/2017, 2:15 PMPabloZ
10/11/2017, 2:36 PMal3xicon
10/11/2017, 2:38 PMal3xicon
10/11/2017, 2:38 PMshea
10/11/2017, 2:51 PMkristopherw
10/11/2017, 3:28 PMnzaleski
10/11/2017, 3:30 PMx2js
. I have a suitelet /SuiteScripts/shipping_api/kdl_rateRequest.js
and I have the config.json
in the same path. I added the @NAmdConfig /.config.json
tag to the JSdoc. I feel like the module is loading fine but the library isn't passing over. I logged x2js
and it is just undefined. I will post some code below. Thanks. Also here is library https://github.com/abdmob/x2js/blob/master/xml2json.jsnzaleski
10/11/2017, 3:30 PMnzaleski
10/11/2017, 3:31 PMerictgrubaugh
10/11/2017, 3:35 PMbaseUrl
in your config file as well in order to use relative paths
nzaleski
10/11/2017, 3:45 PMmatt.graney
10/11/2017, 3:50 PMshea
10/11/2017, 3:55 PMshea
10/11/2017, 3:55 PMshea
10/11/2017, 3:56 PMuser
10/11/2017, 4:07 PM'./x2js'
in your definition array (assuming the file is in the same location as the suitelet file).erictgrubaugh
10/11/2017, 4:10 PMerictgrubaugh
10/11/2017, 4:10 PMpaths.x2js
as "./lib/xml2json"
, i.e. put the ./
in frontnzaleski
10/11/2017, 4:22 PMdbarnett
10/11/2017, 4:24 PMerictgrubaugh
10/11/2017, 4:25 PMnzaleski
10/11/2017, 4:25 PMerictgrubaugh
10/11/2017, 4:25 PMbaseUrl
has to be therenzaleski
10/11/2017, 4:27 PMerictgrubaugh
10/11/2017, 4:27 PMerictgrubaugh
10/11/2017, 4:27 PMx2js
an AMD module?