Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
emailMerger.setEntity() Seems to be not merging the used template with the entity
Hi,
I'm trying to send a template mail on user event to a customer in my sandbox and below is my code :
var emailMerger = nlapiCreateEmailMerger('22');
emailMerger.setEntity('customer', customerId);
// emailMerger.setRecipient('customer', customerId);
var mergeResult = emailMerger.merge();
var emailSubject = mergeResult.getSubject();
var emailBody = mergeResult.getBody();
emailBody = emailBody.replace('{1}', name);
emailBody = emailBody.replace('{2}', date);
nlapiSendEmail('20', 'user1@mytestserver.com', 'Test Mail',emailBody, null, null, null, null);
But unfortunately, I'm unable to see any mail merged under the communication tab in that customer. Is anything I'm missing here ?