什么是 SuiteScript 2.0 等同于 nlapiPrintRecord()

What is the SuiteScript 2.0 equivalent to nlapiPrintRecord()

有谁知道这个方法在 2.0 中的位置。如果 NetSuite 会在 1.0 文档中为 nlapiPrintRecord() 放置一个 link 到 2.0 实现,我就不必问 Stack 社区

从技术上讲,没有直接推论。 SuiteScript 2.0 不使用相同的对象模型,所以没有 returns nlobjFile 而是一些 return file.File 但这有点迂腐。

所有现有选项都是 N/render

的一部分

1.0 nlapiPrintRecord() api 中的 'types' 被分解为单独的方法,'mode' 由枚举 render.PrintMode[=16 控制=]

上面链接的帮助中心文档中提供了(几乎)每种方法的功能示例。