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 to get template email merge working in SuiteScript 2.0?
Im trying to send the same email that is sent from our system if you click on the "email option" from inside an item fulfillment using suitescript 2.0. I have it so I can send an email with a text string body, but I havent been able to pull the advanced pdf template and merge it with the Item Fulfillment. How do I do this. I have been through a lot of iterations, but this is what I currently have as I try to work on it(this gives an error of course):
/**
*@NApiVersion 2.x
*@NScriptType UserEventScript
*/
define(['N/email','N/render', 'N/record', 'N/file'],
Tagged:
0