Hi Guys. Good Day. I just want to ask if anyone ha...
# suitescript
b
Hi Guys. Good Day. I just want to ask if anyone have tried changing the pdf filename in netsuite when downloading it. is it doable? The standard filename is transaction type suffixed with the internal id. I wanted to change it to the document number. Example: Standard is: PurchOrd_2113122 Expected is: PurchOrd_PO12231 Any answers would be greatly appreciated. Thanks,
b
the usual for asking in the suitescript channel is sharing the code
r
you can if in script and getting back file ref from render.
Copy code
var emailPDF = rederFileRec.renderAsPdf();
emailPDF.name = pdfnam + '.pdf';