SuiteScript 2.0 manually add items to communications tab

Add email manually to the communications tab of a transaction The messages sublist is not editable or dynamic, so you do not add items to it directly. Instead you add to it by sending an email via the N/email.send() API and providing the relevant transaction as a Related Record in the options.

Transaction Email Attachment Format impact in Email Template

//Info: APPN-2028 After updating the Advanced Pdf templates, we need to set this in Transaction forms to preview the result in Associated Prints.If we want the same print as the Email attachment, we usually select the same template in the Email template section. But, Is the issue solved..? The answer is No! We need to… Continue reading Transaction Email Attachment Format impact in Email Template

IF Automated Email

Description Send an email to the customer when an item fulfillment status is changed to “shipped”. There should be 2 email templates: the one currently used to send automated emails; another one need to be created with the Subject as “Your order is now ready for pick-up!” and message body as “Pick-up hours are Monday… Continue reading IF Automated Email

Options in email.send

The following code can be used to attach the Pdf of the transaction record to the email as an attachment and set the subject and body of the email using an email template. Create transaction PDF let transactionFile = render.transaction({    entityId: recordId,    printMode: render.PrintMode.PDF,    inCustLocale: true }); save the file to file cabinet transactionFile.folder =… Continue reading Options in email.send

Map-Reduce script example

Map/Reduce scripts in NetSuite is a scheduled script type that can work on large set of data. It is intended for parallel bulk data operations. They offer more power and benefits over the standard Scheduled scripts.This is a sample code of a map-reduce script for sending emails to all customers with pending invoices that are… Continue reading Map-Reduce script example