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!
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'],