【问题标题】:How do you search for all Advanced PDF Templates您如何搜索所有高级 PDF 模板
【发布时间】:2020-12-15 18:14:08
【问题描述】:

在 netsuite 中搜索高级 PDF 模板记录的正确记录类型是什么。以下方法不起作用:

search.create({
    type: 'advancedpdftemplate',
    columns: ['scriptid'],
    filters: [['scriptid', 'is', 'somescriptid'], 'AND', ['isinactive', 'is', 'F']]
}).run().each(function (r) {
    ...
});

【问题讨论】:

  • 在 record.Type 的帮助主题中看不到任何内容(注意标题中的小 r)。一些引用/使用它们的代码在 N/render 模块的帮助中。
  • 我确实在 query.Type 中看到它。键入 PDF_TEMPLATE pdftemplate,这也是在编辑模板时出现在 URL 中的内容。

标签: netsuite suitescript suitescript2.0


【解决方案1】:

原来它不是可编写脚本的记录。我联系了 Marty Zigman,这是他的回应:

Running this:
  nsapiGetRecord('pdftemplate')

indicates this: 
  {initializedefaults: Array(23), transformdefaults: Array(23), 
  id: "pdftemplate", type: "OTHER", scriptable: false, …}

【讨论】:

    猜你喜欢
    • 2019-04-29
    • 2014-05-08
    • 1970-01-01
    • 2019-10-21
    • 2023-01-31
    • 1970-01-01
    • 2018-07-17
    • 2022-01-11
    • 2018-07-21
    相关资源
    最近更新 更多