Anyone has a good pattern to get all "real" fields on a form+sublists and only allow edits on whitelisted fields?
In UE you can do newRec.getFields() and newRec.getSublistFields(), but that gives you a lot of junk that you need to sort through and exclude. Like "sys_id", "wfPI", "custrecords_fieldid_display" etc..
Since we're currently working with a custom record, I can query the tables "customfield" and "customrecordtype" to get all fields, but that won't work with standard fields.