【问题标题】:SuiteScript - Search joining "Term" from "Vendor"SuiteScript - 从“供应商”中搜索加入“术语”
【发布时间】:2021-02-20 06:35:29
【问题描述】:

我正在搜索供应商并希望加入术语以获取术语的名称。供应商有一个名为terms 的字段,其中包含术语的internalid。 Term 有一个名为 name 的字段,其中包含我要查找的内容。

我几乎尝试了所有构建列的组合,但总是出错:

An nlobjSearchColumn contains an invalid column join ID, or is not in proper syntax: name.

我如何构建专栏的示例:

search.createColumn({
name: "name",
join: "terms", // or Term, or Terms, none of it works
label: "termname" // or leave this out or Term or Terms or anything else nothing works
}

创建对vendor 的搜索并包含术语名称的正确方法是什么?

【问题讨论】:

    标签: netsuite suitescript2.0


    【解决方案1】:

    如果您查看记录浏览器,terms 并未列为供应商记录的联接。只需将 terms 作为列 (name: 'terms'),然后在检索结果时使用 getText 而不是 getValue

    searchResults[i].getText({
        name: 'terms'
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-16
      • 1970-01-01
      • 2018-08-09
      • 2012-11-29
      相关资源
      最近更新 更多