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."
Seth Duda
02/18/2021, 4:58 PM
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
Sandii
02/18/2021, 5:10 PM
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
Seth Duda
02/18/2021, 6:02 PM
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
jen
02/18/2021, 7:04 PM
That would be helpful, thanks @Seth Duda
d
Dominic B
02/19/2021, 9:32 AM
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
Seth Duda
02/19/2021, 2:54 PM
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.