Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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]));