Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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]));