if you know the record ID + the line's "line" you ...
# suitescript
c
if you know the record ID + the line's "line" you can do a findSublistLineWithValue and search for the "line" that equals "line"