Coldstar
Coldstar

Reputation: 1341

What is the SuiteScript 2.0 equivalent to nlapiPrintRecord()

Does anyone know where this method is located in 2.0. If NetSuite would put a link in the 1.0 docs for nlapiPrintRecord() to the 2.0 implementation, I wouldn't have to ask Stack community

Upvotes: 3

Views: 1161

Answers (1)

Shea Brennan
Shea Brennan

Reputation: 1132

Technically, there isn't a direct corollary. SuiteScript 2.0 doesn't use the same object model, so nothing returns nlobjFile rather some return file.File But that's being a bit pedantic.

All the existing options are part of N/render

The 'types' from the 1.0 nlapiPrintRecord() api are broken into individual methods, with the 'mode' being controlled by the enum render.PrintMode

There are (nearly) functional examples of each method available in the help center documentation linked to above.

Upvotes: 7

Related Questions