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.
Renaming PDF Attachment Name
Hi all,
I need to send a PDF as an attachment, created through Script. I am able to send the Email and the Attachment but the name is coming as Report.pdf. i want it to rename it to tranid.pdf.
var quote = nlapiLoadRecord('estimate',1234));
//create PDF
var xml = "<?xml version="1.0"?>\n<!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">\n";
xml += "<pdf>\n";
xml += "<head><macrolist><macro id="myfooter"><p align="center">Page <pagenumber/>"+'of '+"<totalpages/></p></macro></macrolist></head>\n";
0