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.
nlapiSendEmail didn't send email
Hi, I have being experimenting some problems to send a notification email during a user event script and a schedule script.
The script is very simple:
var record = nlapiGetNewRecord();
var email = nlapiMergeEmail(17, record.getRecordType(), record.getId());
nlapiSendEmail(974, 974, 'User Event After Submit', email, null, ['employee1@gmail.com','employee2@yahoo.com']);
The numbers are valid template and user. The execution log didn't recieve any exception.
Why it was not sent the email to contacts?
The schedule script sent the email to the owner script with the subject being modified: 'User Event After Submit (Originally contact: ['employee1@gmail.com','employee2@yahoo.com'])'
0