Script parameters are useful when there is a requirement to store data specific to a script but more accessible to all users other than developers. Using script parameterswe can avoid hardcoding certain values to the code that is required to be modified often. Also these values can be modified by anyone having access to the… Continue reading Passing values to Script parameters via Suitescript
Author: Derin Jose
Accessing email data send from email plugin inside Suitelet script
The data can be send to a suitelet from a email capture plugin implementation javascript file using ‘POST’ method.If the suitelet is triggered in ‘POST’ method, we can access this data.The data transferred using ‘POST’ method will be inside ‘scriptContext.request.body’. Since this is transferred as JSON file, the first step on using the datais to… Continue reading Accessing email data send from email plugin inside Suitelet script
Email Capture Plugin Implementation
Email Capture Plugin ImplementationWe can implement email capture functionality in NetSuite account to capture emails inorder to create email message records or use email content data.This is possible if the account already has email capture plugin installed. A email capture plugin file can be created in javascript and uploaded to NetSuite account using theplugin installed.… Continue reading Email Capture Plugin Implementation
How to add values to an email template from a custom record and send email
We can use email templates for easily sending emails between two records having a contact. Email templates are helpful when the emails should follow a specific format or have some common content like company logo and address.Email templates can be accessed using the navigation: Documents> Templates > Email templatesIf needed to add field values from… Continue reading How to add values to an email template from a custom record and send email
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
Issue when accessing values from script parameters
IssueWe can create script parameters for any suite-script in NetSuite using the “New Parameter” button in “Parameters” subtab during editing any script record. The values inside the script parameters can be accessed inside the script using their internal id. Also the values in parameters can be viewed through UI using the script deployment record of… Continue reading Issue when accessing values from script parameters