The file.load loads an existing file from the NetSuite File Cabinet. This function retrieves the file based on its internal ID and returns a file object. let fileObj = file.load( { id: fileId //The internal ID of the file you want to load. }); The returned file object includes several properties: id : The internal… Continue reading file.load of N/file
Tag: n/file
File.url of N/file module
Use the N/file module to work with files within NetSuite let filePdf = file.create( { name : fileName, fileType : file.Type.PDF, contents : pdfContents }); filePdf.folder = folderId; filePdf.isOnline = true; //isOnline value true helps access media files in the NetSuite File Cabinet without a current NetSuite login session let fileId = filePdf.save(); let pdfurl… Continue reading File.url of N/file module