Email Template – Set Dynamic Value via script

Scenario: Use dynamic value in Email Template while sending email using SuiteScript 2.0 Firstly Create an email template: Here you can see, some variables prefixed with “NL”. You can give any name to your variable. Now in SuiteScript 2.0 code, use below code to replace variables of email template before sending email. //Get Transaction IDvar… Continue reading Email Template – Set Dynamic Value via script

Check the changes in the order confirmation email template

We recently encountered a situation in which we needed to make changes to the order confirmation email template in the production domain. After making changes to the email template, we can test the changes using the method described below rather than placing a new order. 1.Make changes innthe email template 2.Take any sales order in… Continue reading Check the changes in the order confirmation email template

Resolve Error: “The template cannot be saved due to the following errors: The following has evaluated to null or missing.” When Customizing a System Email Template

Scenario User customizes a system email template and an error alert is returned. The behavior is caused by some system email templates referencing record types that are only available when their underlying features are enabled. For example, if the Gift Certificates feature is disabled, the native Standard Web Site Gift Certificate system email template would… Continue reading Resolve Error: “The template cannot be saved due to the following errors: The following has evaluated to null or missing.” When Customizing a System Email Template

How to display $ currency and value upto 2 decimal places at same time in email template page

We can use (?string.currency) in the email template of the netsuite.The most basic way to format a number as Currency is to add ?string.currency onto the end of the variable that is being used. This will bring any numbers to 2 decimal places and will also put a $ next to the number. Also, negative… Continue reading How to display $ currency and value upto 2 decimal places at same time in email template page

Adding condition in Email template

We have met a scenario where we need to take the difference between two field and convert that answer in to 2 decimal points Here the two field are ‘transaction.shippingcost’ and ‘transaction.custbody_srtipesubtotal’. So taking the difference between these fields and assigning that two a variable ‘shippingcostvalue’ .Then checking whether the variable ‘shippingcostvalue’ has content. If… Continue reading Adding condition in Email template

Email template Issue with Outlook app in Windows

The style applied to an Image in the style tag may not detect by the outlook app. SO the Image may appear in its original size in the outlook app. For resolving the issue use the code below: Code snippet: In this code, the height and width are given outside the style tag for detecting… Continue reading Email template Issue with Outlook app in Windows

Preview Website Email Templates

This functionality shows you what the selected website email will look like to a web store customer. If you have multiple websites in your account or multiple languages defined in the email template, you can quickly see what the email will look like when sent in different languages from different websites. Depending on the type… Continue reading Preview Website Email Templates