Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Multiple Invoince in Single PDF File - Alternative to nlapiLoadRecord?
Hi,
I am trying to speed up the following script trying to avoid using nlapiLoadRecord()...but I could not find a similar instruction to get more than 1 record. It would be great if nlapiSearchRecord return a list of records instead of objResult.
for (i=0;i<completeResultSet.length;i++) { [INDENT] var renderer = nlapiCreateTemplateRenderer();[/INDENT]
fileTemplateContent = templateFiles[result.getText(columns[3])].getValue(); //This is the FILE Template in HTML
renderer.setTemplate(fileTemplateContent); [INDENT=2]
//I want to avoid using nlapiLoadRecord, because we have to process 5000 invoices in single pdf (or less depending of the volume of the week)
[/INDENT]
var recFactura=nlapiLoadRecord('invoice',completeResultSet[i].getValue(columns[0]));