Hi,
For you typescripters out there. we keep definition-files for custom records/lists that we use in our solutions. Simple files with enums for the record-id and field-ids.
To generate those files, I have (with the help of chatGPT) created a small node-script that reads a Netsuite xml and then outputs the definition file(s).
In Webstorm, this can be added as an "external tool" to be able to right-click an xml-file to generate the definitions.
File -> Settings -> Tools -> External Tools -> Add
The output files look like this:
export const enum RECORD {
ID = 'customrecord_my_cool_record_script_id'
}
export const enum FIELDS {
FIELD_LABEL1 = 'custrecord_field1_script_id',
FIELD_LABEL2 = 'custrecord_field2_script_id',
}