Discussions
Help on E-mail Template Merge in 2014.2
Previous versions of NS allowed the merge of information from a suitescript. This is no longer supported in 2014.2 and I am at a loss in achieving the proper syntax to accomplish this.
Previously I was able to create an html string for a table in SuiteSciript, merge it and send the e-mail using the following code where NLTR030 was the html table and <NLTR030> was in the e-mail template.
var subject = "Urgent - Notification of XYZ";
var mergearr = new Array();
mergearr['NLTR030'] = mergeobjectoftables.NLTR030;
var emailBody = nlapiMergeRecord(81, 'customer', customerid, null, null, mergearr).getValue();
nlapiSendEmail(3, "xyz@xyz.com