Bibek Shrestha
12/01/2022, 1:14 PMCraig
12/01/2022, 1:43 PMCraig
12/01/2022, 1:43 PMCraig
12/01/2022, 1:44 PMBibek Shrestha
12/01/2022, 1:49 PMCraig
12/01/2022, 1:51 PMCraig
12/01/2022, 1:51 PMBibek Shrestha
12/01/2022, 1:51 PMCraig
12/01/2022, 1:54 PMCraig
12/01/2022, 1:54 PMehcanadian
12/01/2022, 1:56 PMBibek Shrestha
12/01/2022, 1:57 PMCraig
12/01/2022, 1:58 PMBibek Shrestha
12/01/2022, 2:43 PMehcanadian
12/01/2022, 2:45 PMmyrecord.getField(fieldId). That will give you the field and the label and typeBibek Shrestha
12/01/2022, 2:50 PM.getFieldBibek Shrestha
12/01/2022, 2:52 PMCustomize in the pay bills pageehcanadian
12/01/2022, 2:53 PMWatz
12/01/2022, 4:22 PMconsole.time()
console.log(rec.getFields().map(fieldId => rec.getField(fieldId)?.label).filter(x => x))
console.timeEnd()
Above takes 3ms for me in the console.
Creating the record could take some long time though.Bibek Shrestha
12/01/2022, 4:24 PMBibek Shrestha
12/01/2022, 6:36 PMrecord.getFields didn’t provide me the list of fields which exactly matched the list of columns NetSuite provides on the customize page. 🥹Bibek Shrestha
12/01/2022, 6:38 PMCustomize Sublist page which you get to when clicking the Customize button on the Pay Bills page?ehcanadian
12/01/2022, 6:40 PMrecord.getSublistFieldsBibek Shrestha
12/01/2022, 6:54 PMCustomize Sublist but the columns are not from any sublist. They are body fields from Vendor Bills record type.Bibek Shrestha
12/01/2022, 6:56 PMVendor record typeWatz
12/01/2022, 9:18 PMBibek Shrestha
12/02/2022, 3:52 PMCustomize feature from the native NetSuite in a plugin.