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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
'name' / 'internalid' not returning NULL in After Submit Function script
Help! Help!!
I have a serverscript deployed on a custom record, which sends out an email upon new record creation. I have the autonumbering enabled on this custom record and one of the fields that need to be emailed is this record number.
I tried using 'name', 'id', 'internalid' and none of them return the custom record # - I get either Null or To be Generated.
My code:
emailtext = 'Claim No : ' + newRecord.getFieldValue('name') + '\n';
My script is an After Submit Function and I assumed the internal Id of the record would be created before my email is sent out. Any idea??
0