Discussions
2008 R1 - nlapiCreateRecord is failing in client suitescript
It seems that nalpiCreateRecord is failing to operate in client suitescript, the following code was working fine before the upgrade to 2008 R1, now i get the error message alert window 'An unexpcted error has occcured'. Attempting to catch the error in javascript returns error description of undefined.
// if UP billing items found, Add to [PCM UP Billing Data] record
alert('0'); // i get this alert
UPBillingRecord = nlapiCreateRecord('customrecord70'); // PCM UP Billing Data - this is a custom record
alert('1'); // this is not displayed, instead i get unexpected errro alert message
UPBillingRecord.setFieldValue('custrecord_billingdata_billingmonth',month); // set billing month