I am doing Email plugin implementation. From the i...
# suitescript
v
I am doing Email plugin implementation. From the implementation record logs, i get the attachment log as "nlobjFile", which is a CSV/JPEG/pdf, anything. Now i have to save it into the File Cabinet. How can i achieve this?
n
nlapiCreateFile() i think is what you're looking for here's an example i found
Copy code
var newFile = nlapiCreateFile(name, type, contents);
newFile.setFolder(fileCabinetFolderID);
nlapi.SubmitFile(newFile)
v
Thank you sir. It workd
👍 1