Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
missing ; before statement (WHY?)
Hi, can someone tell me why the following codes cause the error shown below?
---------------------------------------------------
var adminEmail = new Array();
var emailAuthor = '000000';
var adminEmail[0] = 'someone@someone.com';
var emailTitle = 'NetSuite Script Execution Report';
var reportBody= '***************************************\n' +
'Script ID#: 97\n' +
'Total records on the search: '+ totalRecords + '\n' +
'***************************************';
nlapiSendEmail(emailAuthor, adminEmail, emailTitle, reportBody, null, null, null);
---------------------------------------
Title UNEXPECTED_ERROR
Type System
Date & Time 6/2/2009 9:51 am
Details missing ; before statement (script#97.js#27)