Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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]));