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!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
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]));