如何通过Netsuite suitescript 2.0中的RESTlet脚本获取捆绑包信息?
我想使用脚本获取目标帐户上安装的捆绑包版本 例: 在SuiteScript1.0中,有一种获取捆绑包id的方法,如下所示如何通过Netsuite suitescript 2.0中的RESTlet脚本获取捆绑包信息?,netsuite,suitescript2.0,Netsuite,Suitescript2.0,我想使用脚本获取目标帐户上安装的捆绑包版本 例: 在SuiteScript1.0中,有一种获取捆绑包id的方法,如下所示 nlapiGetContext().getBundleId() 与此类似,有任何方法可以通过RESTlet脚本获取已安装帐户上的捆绑包id、版本等。您可以使用N/runtime模块中的API: var scriptObj = runtime.getCurrentScript(); var bundleArr = scriptObj.bundleIds; 您可以在N/运行时
nlapiGetContext().getBundleId()
与此类似,有任何方法可以通过RESTlet脚本获取已安装帐户上的捆绑包id、版本等。您可以使用N/runtime模块中的API:
var scriptObj = runtime.getCurrentScript();
var bundleArr = scriptObj.bundleIds;
您可以在N/运行时模块中使用API:
var scriptObj = runtime.getCurrentScript();
var bundleArr = scriptObj.bundleIds;