如何通过Netsuite suitescript 2.0中的RESTlet脚本获取包信息?

问题描述 投票:0回答:1

我想获得使用脚本在目标帐户上安装的捆绑版本。

例如:有以下方法可以在setscript 1.0中获取bundle id

nlapiGetContext().getBundleId()

像这些有任何方法通过RESTlet脚本获得已安装帐户上的包ID,版本等。

netsuite suitescript2.0
1个回答
2
投票

您可以在N /运行时模块中使用api:

var scriptObj = runtime.getCurrentScript();
var bundleArr = scriptObj.bundleIds;
© www.soinside.com 2019 - 2024. All rights reserved.