Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
PDF to File Cabinet
Guys, I need some help. I have created a pdf output of a custom record using the nlapiXMLToPDF command. I am currently usiign the below lines which allows the user to either load or save the pdf on their computer
response.setContentType('PDF',FileName);
response.write( file.getValue() );
Does anyone know if there is a way to save the pdf into the file cabinet in suite script. At present the user has to run the above lines, save the pdf to there desktop then manually upload it into the file cabinet, is it possible to automate this entire process?
Thanks
0