Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
nlapiXMLToPDF
I have created a script that reads all the invoices in a given time period for a given customer puts them in a PDF document and emails it to the customer. The script uses nlapiXMLToPDF API to create the PDF document. And it is doing everything correctly except for 1 issue - for the invoices it just prints the first item, even if there are multiple items on an invoice.
Here's the portion of code that loops thru all the items for an invoice which seems correct, but not sure why it is printing only the first item -
**************************************************
xml += "<table align=\"center\" cellborder=\"0\" cellpadding=\"3\" width=\"100%\" style=\"border-collapse: collapse;\">\n";
0