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