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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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