you have `var record = context.newRecord;` - the `...
# suitescript
e
you have
var record = context.newRecord;
- the
var
has the same name as your
N/record
import, so you are thus overwriting the dependency injection