```var tx = currentRecord.get(); tx.selectNewLine...
# suitescript
j
Copy code
var tx = currentRecord.get();	
tx.selectNewLine({sublistId: 'item'});	
tx.setCurrentSublistValue({sublistId: 'item', fieldId: 'item', value: item_id});		
tx.commitLine({sublistId: 'item'});
m
I recently had the same issue and some suggested ForceSyncSourcing as suggested already by battk.
Copy code
currentRecord.setCurrentSublistValue({
    sublistId: 'item',
    fieldId: 'item',
    value: item,
    forceSyncSourcing: true
});
j
👍