In case there is a need to rename a folder name on File Cabinet due to changes in the directory where the script generated documents are being saved for example. It is possible to use SuiteScript to change the folder name in the File Cabinet. The following example uses the N/record Module to load the folder record… Continue reading Rename Folder Using SuiteScript 2.0
Tag: Suitescript2.0
Map Reduce Script
Map/Reduce script is an alternative to a scheduled script which can handle/process a large amount of data. It is best suited for scenarios where data can be divided into small and independent parts. When the script is executed, a structured framework automatically created enough jobs to process all of these parts. No need to manage… Continue reading Map Reduce Script
Status check before sending email with the help of suite script
Status check before sending email with the help of suite script 2.0
Void Transactions using N/transaction Module
Load the transaction module to void transactions. When you void a transaction, the total and all the line items for the transaction are set to zero. The transaction is not removed from the system. NetSuite supports two types of voids: direct voids and voids by reversing journal. The type of void performed with your script… Continue reading Void Transactions using N/transaction Module
How to implement a script library file in NetSuite
We can store global variables and functions inside a script library file in NetSuite. This helps to easily use a function or variable in multiple script records without defining the same for each record. For example, we can store global variables such as email addresses and commonly used functions inside a library file and access… Continue reading How to implement a script library file in NetSuite
Adding note records or user notes to a record
Adding note records through UI We can add user notes or note records to NetSuite records such as employees, customers etc. This can be done through NetSuite UI by going to ‘Communication’ subtab and then ‘User Notes’ under the subtab. We can add a new subtab with a title and memo(description) values.Once a note record… Continue reading Adding note records or user notes to a record
How to fix ‘Syntax error: missing ; before statement’ for suitescript documents version 2.0 and below
Suitescripts written in version 2.0 or below shows this error ‘Syntax error: missing ; before statement’ even when there is ‘;’ present after every single line of code. For example check this client script sample code in suitescript v2.0.(This is a sample code and not used for any specific purpose) /** *@NApiVersion 2.0 *@NScriptType ClientScript… Continue reading How to fix ‘Syntax error: missing ; before statement’ for suitescript documents version 2.0 and below
Suitescript Code for getting customer ID from Itemfulfilment Record
Using SUitescript 2.0 function search.lookupFields we can get any fields in sales order, from there we can get customer id for the correspomding customer record. Code snippet:
Transforming an SO to IF using Suitescript 1.0 and suitescript 2.0
This code will transform a sales order to itemfulfillment using suitescript 2.0 and 1.0
Adding Loading symbol while processing
Scenario: When some process is processing if you need to show any kind of loading symbol for representing the process may take some time. For this you need to add a loading symbol on the page Solution: For this you need to add a jQuery section with a HTML code block. The HTML code block… Continue reading Adding Loading symbol while processing