Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Can Not Set Check Number (tranid) using script
I have created custom record
I am entering data in this custom record. There is user event script written aftersubmit event.
After submitting custom record, i am creating Write check record through script, bt its not allowed me to set Check(tranid) field. Getting error - ReferenceError: "value" is not defined. (NLRecordScripting.fieldChange.f.tranid#3)
I think using script we can not set check (tranid) field...... Is it?
For information please refer my code also
function CreateWriteCheckEntry()
{
//Begin: Getting details form custom record
var headerAcc = nlapiGetFieldValue('custrecord_txn_entry_import_acc');
var vendorId = nlapiGetFieldValue('custrecord_txn_entry_import_payee');
var headerMemo = nlapiGetFieldValue('custrecord_txn_entry_import_memo');