var pdf = nlapiPrintRecord('TRANSACTION', poID, 'PDF', {'formnumber':'108'});pdf.setFolder('853');pdf.setName(poNumber + '-' + nlapiLookupField('purchaseorder', poID,'custbody_po_version_num'));nlapiSubmitFile(pdf);
To avoid this, developers should include the file extension on the file name as well when setting the name of the file using setName. Please check the sample code below as guide.
var pdf = nlapiPrintRecord('TRANSACTION', poID, 'PDF', {'formnumber':'108'});pdf.setFolder('853');pdf.setName(poNu0mber + '-' + nlapiLookupField('purchaseorder', poID,'custbody_po_version_num') +'.pdf');nlapiSubmitFile(pdf);
No comments:
Post a Comment