Discussions
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.
Can't merge email with api nlapiMergeRecord after release 2 update
Dear All,
Afrer release 2 updated, it announced that we can't use nlapiMergeRecord to send email with CRSMDK template. We should use nlapiCreateEmail api to send scriptable template email. So i changed the script and the template. But when i used nlapiMergeRecord before, it has 6 parameters, id, baseType, baseId, altType, altId, fields.
But help center said: To perform a mail merge with a scriptable email template:
[LIST]
[*]Use nlapiCreateEmailMerger(templateId) to create an nlobjEmailMerger object. The function nlapiCreateEmailMerger(templateId) takes the record ID of a scriptable template as an argument. The objectnlobjEmailMerger encapsulates the scriptable template.
var emailMerger = nlapiCreateEmailMerger(<