Call SuiteScript 2. x Scripts from SuiteScript 1.0 Scripts

If converting your SuiteScript 1.0 scripts to SuiteScript 2. x is not feasible in your situation, you can use SuiteScript 2. x to develop any new functionality within a RESTlet and call the RESTlet from your SuiteScript 1.0 script using the nlapiRequestRestlet() function. This approach lets you take advantage of the features, APIs, and functionality… Continue reading Call SuiteScript 2. x Scripts from SuiteScript 1.0 Scripts

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

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