Hey all, in a SuiteScript 2 script, do any of you know how to disable the 'Fail to Evaluate' check? Reason being that Netsuite tests the scripts in an environment without access to 'window'... and my script assumes access to it.
e
eminero
05/11/2023, 6:44 PM
window is part of the browser API, you might be able to use it only in a Client Script but not any Server Script.
m
Michael Pope
05/11/2023, 7:22 PM
@eminero Yeah, I know. And I have specified a client script... but the validation doesn't seem to care that I did 😛 . There's probably something else going on I'm guessing... some error I have. I'll keep looking.
e
eminero
05/11/2023, 8:40 PM
If this is a new script, delete the record and re-create it.