Some 2019.2 changes that I must have missed throug...
# suitescript
j
Some 2019.2 changes that I must have missed throughout the release notes revisions
Support for Relative File Paths in the N/file Module
In 2019.2, you can specify a relative file path when you load a file using the file.load(options) method in the N/file module. Relative paths always start with ./ or ../. Previously, you could load a file only by specifying the internal ID of the file or the absolute file path to the file in the File Cabinet. For more information, see N/file Module.
Seamless Login to the SuiteScript Debugger
In 2019.2, you do not need to enter your NetSuite credentials to access the SuiteScript Debugger when you are already logged in to NetSuite. Previously, when you logged in to NetSuite and opened the SuiteScript Debugger, you needed to enter your NetSuite credentials again. Now, you are logged in to the debugger automatically.
👍 1
m
Thanks, I also missed that first one. That's helpful for serving assets in a Suitelet (like I am doing here https://github.com/michoelchaikin/netsuite-mapreduce-util/blob/aed74597c13646133158ba50cc9d0b18bf733edd/SDF/FileCabinet/SuiteScripts/MOS%20Map%20Reduce%20Utility/mos_mapReduceUtil.ts#L80). I think you may have posted some code once I took the idea from.
👏 1
Though I later learned that you can use the magic AMD
module
module to do that as well
👌 1
j
Yeah, I picked up that
module
trick from @battk . Looks like we won't need these workarounds any more simple smile