【问题标题】:How to get bundle information through RESTlet script in Netsuite suitescript 2.0?如何通过 Netsuite suitescript 2.0 中的 RESTlet 脚本获取捆绑信息?
【发布时间】:2019-03-21 17:36:35
【问题描述】:

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

例如: 有办法在 suitescript 1.0 中获取 bundle id,如下所示

nlapiGetContext().getBundleId()

有什么方法可以通过 RESTlet 脚本获取已安装帐户的捆绑包 ID、版本等。

【问题讨论】:

    标签: netsuite suitescript2.0


    【解决方案1】:

    您可以在 N/runtime 模块中使用 api:

    var scriptObj = runtime.getCurrentScript();
    var bundleArr = scriptObj.bundleIds;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多