If you removed the `var` from `var currentRecord =...
# suitescript
e
If you removed the
var
from
var currentRecord = context.currentRecord
, then it would become global, but I am not recommending that