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
Emailing nlapiGetNewRecord()
When a user generates a sales order I would like to see what data is being populated from nlapiGetNewRecord(). It seems to return the right stuff when I test it but when it runs under other users I get a null pointer exceptions so I would like to be emailed exactly what it returns. I have the following code for this;
var newRecord = nlapiGetNewRecord(); nlapiSendEmail( 14213 , 14213, 'Sales Order Submitted', newRecord);
But all this does is send me an email that says "nlobjRecord" rather than the actual data contained in newRecord. Is there a way to do this? Thank You.
Trevor
0