You could try using a JS xlsx library like <https:...
# suitescript
m
You could try using a JS xlsx library like https://github.com/SheetJS/js-xlsx. It supports require.js (https://github.com/SheetJS/js-xlsx/tree/master/demos/requirejs) so that's a good start
w
I have never loaded a Library in JS before, so I was reading the SS 2.0API manual and thought I had it figured out, but when the script tries to load I get an Unexpected Error. ``{"type":"error.SuiteScriptModuleLoaderError","name":"UNEXPECTED_ERROR","message":"TypeError: Cannot set property \"JSZipSync\" of undefined to \"org.mozilla.javascript.InterpretedFunction@2510fe64\" (/SuiteScripts/Libraries/xlsx.full.min.js#2)","stack":[]}`` Which makes me think I'm on the right path. I created a JSON file and placed it in the Scripts folder in the file cabinet. On my script I added this tag ``* @NAmdConfig ../JsLibraryConfig.json`` , and I added 'xlsx' to my define and function.
I was trying to load it in a UE and once I put it in a Client Script I'm not getting errors. So I'll keep working away.