To answer your question, you'll need to `load()` t...
# suitescript
e
To answer your question, you'll need to
load()
the record, add the new line values using
setSublistValue()
, then
save()
the record. Why wait until
afterSubmit
? Generally if you're modifying the same record, you want to prefer
beforeSubmit
to avoid committing the record to the database twice on every save