It is correct that NetSuite is switching all 2.x s...
# suitescript
s
It is correct that NetSuite is switching all 2.x scripts to automatically use 2.1 in 2021.1? I didn't notice this in the 2021.1 release notes, but I've recently received an email from NS saying "Currently, server scripts with an @NApiVersion value of 2.x run as SuiteScript 2.0 scripts. With the NetSuite 2021.1 release, server scripts with an @NApiVersion value of 2.x will run as SuiteScript 2.1 scripts."
Ok, so this is a bit confusing. The email was forwarded from a client and they had received it back in May 2020. However, I see no mention of this change in the release notes for 2021.1.
s
I got the same email, I would imagine it is still going to go off the account settings, so maybe newly provisioned accounts would default to 2.1 and old ones would stay 2.0 unless someone goes and changes those account settings?
s
That must be what it means. I've reached out to NS to see if I can find out or details. Will post here if I find out more.
👀 1
j
That would be helpful, thanks @Seth Duda
d
The "Execute SuiteScript 2.x Server Scripts as" option is still there and still has 2.0 available in 2021.1, so I'd assume it's just that this defaults to 2.1 in new/unchanged accounts as @Sandii says.
s
Here's what I received from NS regarding the email about switching to 2.1: With regards to your scripts, if the indicated version in your scripts are 2.x then they’re OK as of the latest release. Although 2.x normally implies the latest SuiteScript GA version, it will be treated as 2.0 as of the latest release. Since the version annotation may change in the future as mentioned below, you must change the version to 2.0 if you are not using 2.1 APIs. It’s worth noting that SuiteScript 2.1 is backward compatible with 2.0 so your scripts will work exactly the same way. You may refer to SuiteScript 2.1 content in the Help Center for more details.
Although the above statement isn't entirely true - @battk provided this link in another thread about issues converting from 2.0 to 2.1: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_158755248128.html