```subRecord.setSublistValue({ sublistId: 'inv...
# suitescript
c
Copy code
subRecord.setSublistValue({
    sublistId: 'inventoryassignment',
    fieldId: 'issueinventorynumber',
    value: lot,
    line: subRecordCount
});
m
@Craig your code yes it needs line number but not in @Rabindra Kushwaha code, because it is CurrentSublist.