David Stillman
09/30/2019, 6:11 PMKevinJ of Kansas
09/30/2019, 6:19 PMDavid Stillman
09/30/2019, 6:20 PMKevinJ of Kansas
09/30/2019, 6:30 PMWorkflow Action Script> Send Email with Customized PDF Title
Published 02/25/2018 10:07 PM | Updated 08/05/2019 07:14 PM | Answer Id: 69220
David Stillman
09/30/2019, 9:44 PM//Get the email subject from the custom field
var body = nlapiGetFieldValue('custbody_email_subject');
//Get the email body from the custom field
var subject = nlapiGetFieldValue('custbody_email_body');
David Stillman
09/30/2019, 9:44 PMDavid Stillman
09/30/2019, 9:58 PMvar file = nlapiPrintRecord('TRANSACTION', id, 'PDF', {'formnumber': 'CUSTTMPLDAVESINVOICE'});
KevinJ of Kansas
09/30/2019, 10:13 PMDavid Stillman
09/30/2019, 10:18 PMDavid Stillman
09/30/2019, 10:18 PMKevinJ of Kansas
09/30/2019, 10:42 PMKevinJ of Kansas
10/01/2019, 11:33 AMvar file = nlapiPrintRecord('TRANSACTION', id, 'PDF', 'CUSTTMPLDAVESINVOICE');
David Stillman
10/01/2019, 4:16 PMformnumber
had to reference the new form, go figure. The docs were less than helpful on that one. Thanks again, Kevin