if you want the line id you load the record after ...
# suitescript
b
if you want the line id you load the record after you save it