Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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');