Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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(<