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!
retrieve ID of auto-numbered custom record via record module
I have a custom record that has auto-numbering set. Nothing complicated - just zero-pads the id.
If I create a search I can retrieve this id with this column:
search.createColumn({
name: "name",
sort: search.Sort.ASC,
label: "ID"
})
Now I want to retrieve that value in a user event script. Nothing I've tried will work. doing record.getValue({fieldId: 'name'}) silently returns nothing.
Retrieving 'id' returns the non-zero-padded id.
Is there a way to do this?
0