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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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