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