Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
accessing script parameters...
In the 2007 release, it looks like the following no longer works for accessing script parameters???
if (custscript_case_debug == 'T')
nlapiLogExecution ('DEBUG', 'Debug mode is turned on');
Now the following must be used:
var value = nlapiGetContext().getSetting('SCRIPT', 'custscript_case_debug');
if (value == 'T') {
nlapiLogExecution ('DEBUG', 'Debug mode is turned on');
I still see script parameters being accessed the old way in the docs/guides, so I am assuming I was not doing something wrong to begin with.
If this change is intentional (and I do like this new way much better), shouldnt there be a time where both ways work in order to update all scripts that are currenly in production???
0