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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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