use this :var currIndex = objRecord.getCurrentSubl...
# suitescript
r
use this :var currIndex = objRecord.getCurrentSublistIndex({ sublistId: 'item' });to get the current line number and send the parameter to that function