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
How can I add multiple transactions when calling render.mergeEmail with a template
I am creating a scheduled script that retrieves a list of unacknowledged Purchase Orders, then stores them according to the Vendor Id before emailing a list of transactions to the vendor. When storing a transaction, I store the internal ids of the vendor, transaction, and employee contact, so in the end there can be multiple transaction ids going to a single vendor. I have successfully merged these records with an email template, but only with a single transaction id. Is there a way to add x transactions when calling render.mergeEmail and reference each within an Email Template?
Here's my code that works for sending 1 transaction:
0