context.newRecord.id should give you the record in...
# suitescript
r
context.newRecord.id should give you the record internal id