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.
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)