SUITESCRIPT 2.1 FEATURES

“let” keyword: This is basically a super local variable, it’s very useful for using them in for loops. Now you can have multiple nested for loops and declare all of your loop counter variables “i” and not worry about conflicts. Example Using var: Using let: “for of” statement This is another way to loop through… Continue reading SUITESCRIPT 2.1 FEATURES

SuiteTalk Web Services

SuiteTalk is a web services integration platform provided by Oracle NetSuite, a cloud-based enterprise resource planning (ERP) and business management software suite. SuiteTalk allows developers to build integrations between NetSuite and other systems by providing a set of SOAP-based web services that enable programmatic access to various NetSuite functions and data. With SuiteTalk, developers can… Continue reading SuiteTalk Web Services

Upload File from an Assistant Suitelet to NetSuite Using SuiteScript 2.0

In some cases users would like to upload files to NetSuite File Cabinet in order to use them later.  However, it is not always easy to understand how it should be done. For instance, user may experience issues deciding at what point of the script execution it should create a file object and save it… Continue reading Upload File from an Assistant Suitelet to NetSuite Using SuiteScript 2.0

Suitelet with Available Without Login not Sending Emails When External URL is Used on Test Accounts

Developers running into an issue where email.send(options) is triggered, but email is not sent when using External URL of the Suitelet and it sends email when internal URL is used on test drives, development accounts. It is important to note that on test, development accounts there Email Options for routing is set to Send Email to Logged in… Continue reading Suitelet with Available Without Login not Sending Emails When External URL is Used on Test Accounts

Showing Standard NetSuite Messages in the “View” Mode

It is not possible to show any standard NetSuite messages from a Client Script in view mode since the scriptContext.mode parameter of the pageInit(scriptContext) function does not support such a value as view. It is also not possible to achieve this in User Event Script beforeLoad(scriptContext) function as well since the Message.show() method is not supported there. However, in some cases it may be handy to provide users with a… Continue reading Showing Standard NetSuite Messages in the “View” Mode

Features of SuiteScript 2.0 over SuiteScript 1.0

1. Map/Reduce Script Type: Based on the Map/Reduce model, SuiteScript 2.0 introduces a new server-side script type that facilitates a structured framework for server-side scripts that process a large number of records. In SuiteSript 1.0, only 10K units of governance can be executed at a single instance of time as per the default framework. To… Continue reading Features of SuiteScript 2.0 over SuiteScript 1.0

Steps to set up automatic purchase order creation/Drop Ship Order:

Enable Drop Ship: Ensure that the drop ship feature is enabled in NetSuite. Go to Setup > Company > Enable Features, and under the Transactions tab, check the “Drop Shipment” box. Save your changes. Vendor Setup: Ensure that the vendor associated with the dropship item is set up correctly. Go to Lists > Relationships >… Continue reading Steps to set up automatic purchase order creation/Drop Ship Order:

The ignoreFieldChange property when setting the A/R Account on a Customer Refund record

Using the ignoreFieldChange property when setting the A/R Account on a Customer Refund record in NetSuite depends on your specific requirements and the business logic you want to enforce. The A/R Account field on a Customer Refund record is a crucial field that determines the accounting impact of the refund. It is typically associated with… Continue reading The ignoreFieldChange property when setting the A/R Account on a Customer Refund record

Remove Character Combination from string using JavaScript

To remove a specific character combination from a string in JavaScript, you can use various methods. One way is to use regular expressions with the replace() method. Here’s an example. In this example, the function removeCharacterCombination takes two parameters: ,inputString which is the original string, and combination, which is the character combination you want to… Continue reading Remove Character Combination from string using JavaScript