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.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
nlapiSendEmail and CC Array
Hi All,
Please bear with me as I try to explain this, thanks.
ok, I have a record which holds 5 email addresses in 5 separate fields.
Email Field 1
Email Field 2
Email Field 3
Email Field 4
Email Field 5
I want to use these email addresses in a script which will add them to a CC array to use with nlapiSendEmail, this works fine.
However on some of the records not all the email address fields will be populated (i.e 1 & 2 have email, 3,4,5 do not) and this is where I get a problem as I receive an error saying the cc[3] has no valid email address.
0