If you're working with newRecord you need to use N...
# suitescript
m
If you're working with newRecord you need to use N/record.Record.insertLine() instead.