Ivan Gomez
08/08/2025, 12:04 AMchristianRILECPQ
08/08/2025, 2:54 AMgetLineCount()
and loop through with getSublistValue()
to get all the component lines.
Try something like:
var lineCount = record.getLineCount({sublistId: 'component'});
for (var i = 0; i < lineCount; i++) {
var componentValue = record.getSublistValue({
sublistId: 'component',
fieldId: 'componentcost',
line: i
});
}
Make sure you're using the right sublist ID; might be 'costcomponent' instead of 'component' depending on the record type.Ivan Gomez
08/13/2025, 2:09 PM