Arham Momin
08/18/2025, 7:19 PMrecordObj.getFields()
, but it only returns the IDs of fields that contain values. How can I retrieve all field IDs, including empty ones?Anthony OConnor
08/18/2025, 7:54 PMAnthony OConnor
08/18/2025, 7:55 PMAnthony OConnor
08/18/2025, 7:56 PMArham Momin
08/18/2025, 9:48 PMgetFields()
only returns fields that contain data. When I add a value to a field, it appears in the results, but if I remove the value, the field disappears again.
This behavior is similar to the NetSuite Field Explorer extension, which only displays fields with values.
However, I found an alternative approach: extracting the XML of the record, which includes all field IDs—even empty ones.Anthony OConnor
08/18/2025, 9:49 PMArham Momin
08/19/2025, 9:24 AMAnthony OConnor
08/19/2025, 1:06 PMAnthony OConnor
08/19/2025, 1:10 PMline fields are not getting disabled. I used currentRecord.getSublistField()you're trying to disable sublist fields? I wanna say you could do that in SS1.0 but they never implemented in 2.0 presumably you're doing this conditionally in some client script?
Arham Momin
08/19/2025, 1:26 PMAnthony OConnor
08/19/2025, 1:35 PM