I know that a sublist on a transaction has a unique line ID for each sublist line. Does anyone know how to access that in SuiteScript?
This does not return anything
var lineID = salesOrder.getSublistValue({
sublistId: 'item',
fieldId: 'id',
line: i
});