Create a Zip File in netsuite

require([‘N/compress’, ‘N/file’], function(compress, file) { // load/create files to be archived var binaryFile = file.load({ id: 200 }); var textFile = file.create({ name: ‘file.txt’, fileType: ‘PLAINTEXT’, contents: ‘This is sample content.’ }); // create an archive as a temporary file object var archiver = compress.createArchiver(); archiver.add({ file: binaryFile }); archiver.add({ file: textFile, directory: ‘txt/’ });… Continue reading Create a Zip File in netsuite

Bulk Upload Of Files To The File Cabinet

Create a Zip file with all the files needed to be uploaded to the Netsuite filecabinet. Go to file cabinet and click Advanced Add. To upload a .zip file, in the Zip Archive to Add field, click Choose File, and then find the file you want to upload to NetSuite. Click Open. In the Character… Continue reading Bulk Upload Of Files To The File Cabinet