hi everyone, I am working in a beforeSumbit entry ...
# suitescript
m
hi everyone, I am working in a beforeSumbit entry point of a User Event script on Invoices. I am setting variables I'll need like this: `var total = newRecord.getValue({fieldId: 'total'});`I am getting the desired value for every call except a
getValue()
call on the fieldID: `entityname.`For this field, it returns empty. I tried getText, too, same thing. I often utilize the NetSuite Field Explorer Chrome extension to quickly see field ids on a record, and
entityname
is there and it has a value. I did notice it appears to be missing on the Invoice page of the Records Schema ( https://www.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2017_1/script/record/invoice.html ). Can anyone tell me why this field value might be returning empty when it shows that is has a value in the Field Explorer and obviously the record in NS's UI?? Thank you!
p
I usually do a
log.debug();
in my UE with
JSON.stringify(newRecord)
to see what's available