On line 30, you cannot save the newRecord object. ...
# suitescript
m
On line 30, you cannot save the newRecord object. It's just not permitted. To make a change in the afterSubmit you need to load it first, make a change to that loaded record, then save it.