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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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