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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Getting all the fields of a custom record
Good morning,
I'm looking for a way to extract, with SuiteScript, the names of the custom fields added to a custom record type.
For example if there's a custom record type called "customrecord144", and it has two fields "custrecord241" and "custrecord242".
Is there a function that, given the name of the record type ("customrecord144"), returns an array of objects describing the 2 fields, "custrecord241" and "custrecord242".
I've tried with
var oCustRecConfig = nlapiLoadConfiguration('customrecord144'); but it raises an exception "Invalid type customrecord144, use nlapiLoadRecord".
Any suggestion?
Thank you,
Alessio
0