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.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
help with my Merge Code please...
trying to figure out what I am doing wrong...
I want add a button to the "Sales Order" edit screen, that merges the record with my template...
here's the code:
function printTransaction(request,response) { if ( request.getMethod() == 'GET' ) { var transactionRecord = request.getParameter('transactionRecord'); var transactionType = request.getParameter('transactionType'); var mailRec = nlapiMergeRecord(838, transactionType, transactionRecord); //merges the record to the template with id 636 var file_name = mailRec.getName(); mailRec.setName(file_name + '1-10-2012' + '.doc'); // ensures file name is unique by adding record internal id, and set with the file extension .doc mailRec.setFolder(94); //internal ID of the folder in your file cabinet to store the created documents var file_id = nlapiSubmitFile(mailRec); //saves file to the file cabinet // code to add a button to a record. deploy as a before load 0