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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Problem associating an email to a customer record
Hi there and thanks in advance for any help or advice.
I have a script which automatically sends out overdue notices (with statement attachment) to customers - simple enough. I have not been able, however, to record the email (and contents) in the customer's "messages" tab.
I have searched on the forum, and despite all the previous samples of nlapiSendEmail, no luck yet.
Here is the code that I am currently using - for troubleshooting and testing, I am using the Anonymous customer account (internalID of -6):
var records = new Object();
var StatementAttach = nlapiPrintRecord('STATEMENT', CustID, 'PDF', sdate);
records['entity'] = 'customer';
0