Seems to be that I missed the general require([ ])...
# suitescript
c
Seems to be that I missed the general require([]) block before assigning it to a variable;
s
you need
Copy code
require(['N/currentRecord'])
var cr = require('N/currentRecord')
You could also use something like this to avoid that https://netsuiteprofessionals.slack.com/archives/C29HQS63G/p1583430754146900