简体   繁体   English

在Netsuite中启用SuiteScript 2.0

[英]Enable SuiteScript 2.0 in Netsuite

When I try to create a new script record in NetSuite, it doesn't allow me to select API Version 2.0. 当我尝试在NetSuite中创建新的脚本记录时,不允许我选择API版本2.0。 It just says "Select 1.0 Script Type". 它只是说“选择1.0脚本类型”。

Do I simply have to put in the SuiteScript 2.0 annotations at the top of a 1.0 script, or is there a setting in NetSuite that I have to enable to allow me to create new SuiteScript 2.0? 我是否只需要在1.0脚本的顶部放置SuiteScript 2.0批注,或者必须启用NetSuite中的设置以允许我创建新的SuiteScript 2.0?

It's the annotations plus the right script signature. 它是注释加上正确的脚本签名。

When you upload an SS2 file the file's annotations are checked and the script is analyzed for the correct entry point. 当您上载SS2文件时,将检查文件的注释,并分析脚本中的正确入口点。

You can't mix different scripts in the same file the way you could for SS1. 您不能像在SS1中那样在同一文件中混合使用不同的脚本。 I generally use a folder to hold scripts of related functionality in SS2. 我通常使用一个文件夹来保存SS2中相关功能的脚本。

because of your script contains 1.0 functionality, it is not allowing. 由于您的脚本包含1.0功能,因此不允许。 try to upload script with 2.0 functionality it will works. 尝试上传具有2.0功能的脚本,它将起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM