Transitioning from SuiteScript 1.0 to 2.x, what is...
# suitescript
n
Transitioning from SuiteScript 1.0 to 2.x, what is best practice: Keep existing script record with updated script file and version, or create a new script record?
e
I think you'll find that you must create a new Script record. Through several observations in this community, it seems NetSuite never automatically updates the version of a Script record.
n
Right, NetSuite doesn't automatically do that, but I can manually make the change with nlapiSubmitField('script',<id>,'apiversion','2.1') or with the NetSuite Advanced Field Help Chrome extension
e
Does that actually work, though? I feel like I've seen cases here where someone makes the change, the Script record even shows the new version, but the script doesn't actually execute with the new version correctly
n
I haven't run into any issues in sandbox
I have successfully tested a Suitelet and Scheduled Script
1
e
Sounts like you have it under control
n
Difference between can and should. Can I is under control, but now I'm asking should I