Could be you mean to set that to scriptContext.new...
# suitescript
m
Could be you mean to set that to scriptContext.newRecord?