<@UN43R7YJ3> No, but I imagine it wouldn't be too ...
# suitescript
m
@Karsh No, but I imagine it wouldn't be too difficult via scripting. Create a template renderer for the invoice and render it to a string using it's printing template. Turn in into a PDF by using nlapiXMLToPDF. Send it to S3 using a POST request. Or something like that.
k
how do you turn it to a string/XML?
m
nlapiCreateTemplateRenderer()
. Then add the stuff you need to the renderer (see it's methods here: https://YOURACCOUNTIDHERE.app.netsuite.com/app/common/scripting/nlapihandler.nl?downloadapi=T). Then call
.renderToString
on the template tenderer.