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.
Create check: RCRD_UNEDITABLE
I'm getting RCRD_UNEDITABLE "That record is not editable" when trying to create a check in a RESTlet. Am I doing something wrong?
var newCheck = nlapiCreateRecord('check'); newCheck.setFieldValue('entity', '9'); newCheck.setFieldValue('memo', 'Memo Goes Here'); newCheck.selectNewLineItem('expense'); newCheck.setCurrentLineItemValue('expense', 'amount', '5.00'); newCheck.setCurrentLineItemValue('expense', 'account', '437'); newCheck.commitLineItem('expense'); var checkId = nlapiSubmitRecord(newCheck); return checkId; 0