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.
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