• : 1-877-596-8218
  • : sales@aecc.ca
# # #

How to create a button in NetSuite to open a saved search result

Challenge: Recently I did a customization for one of our customers, to create a SuiteLet to control/monitor the running of the Scheduled Script. One of their requirement is to have a button on the SuiteLet to open the saved search that selected on the page. Solution: The solution is simple and straightforward, if we know … Continue reading “How to create a button in NetSuite to open a saved search result”

How to Prevent User from Editing the Record — Using Client Side Script.

Challenge: Recently I did a customization for one of our customer, they want a Client Side Script that preventing certain fields from editing on the transaction record. The solution looks quite straightforward, using the validate field client side script and return false at the end. The Solution turned out to be incorrect and only works … Continue reading “How to Prevent User from Editing the Record — Using Client Side Script.”

Include Custom Module in NetSuite 2.0 Script.

The challenge: In SuiteScript 1.0, we can put the common use or shared functions into a script file and share it with multiple Script Record by defining this file as the Script Library Files. This increases the code reusability when writing the script, especially when designing a large project with multiple scripts working together. But … Continue reading “Include Custom Module in NetSuite 2.0 Script.”

Overcome saved search each() function limitation

How to overcome the each() function only loops over the first 4000 results for the saved search results in SuiteScript 2.0 Background: It’s quite common to use the search API in the suiteScript to get data from NetSuite database. We can create a search or load the saved search which is predefined in NetSuite. And … Continue reading “Overcome saved search each() function limitation”

Working with Subrecord on SuiteScript

In NetSuite, there is a kind of record called subrecord, it is similar to the record and most of the record APIs can be used on the subrecord. The most significant different between the record and a subrecord is that the subrecord must have a parent record, the subrecord cannot exist in the system without … Continue reading “Working with Subrecord on SuiteScript”

NetSuite SuiteFlow.

Netsuite Provides the SuiteFlow to customize the system functionality and business process without any scripting needed. Compared with SuiteScript, it has a similar functionality except the following differences *For SuiteFlow, user can define the SuiteScript as SuiteFlow Actions, and use them in the SuiteFlow. Let’s start with creating a simple SuiteFlow for Quote/Estimate Record. Go … Continue reading “NetSuite SuiteFlow.”

Source Custom Field from Saved Search.

Saved Search in NetSuite is a powerful tool. One can create a custom field and use a Saved Search to auto populate the custom field without the help of scripting. Each time the form contains this custom field is displaying, the saved search will run and populate the field with data from saved search. Today … Continue reading “Source Custom Field from Saved Search.”

SuiteScript 2.0.

Version 2.0 of SuiteScript allows developers to use modules to better structure their code. For example, you load a message module if you need to display a message at the top of the screen. There are two main functions in SuiteScript 2.0: define and require. When you use “define” the system loads all modules before … Continue reading “SuiteScript 2.0.”

Create a Simple SuiteLet.

SuiteLet is a powerful extension of NetSuite SuiteScript, it allows user to build customize page with back-end logics. SuiteLet is a server side script running on the server. To start with SuiteLet, let’s create a simple SuiteLet and add on button on a customer record, when the record is clicked, a suiteLet will open to … Continue reading “Create a Simple SuiteLet.”

RESTLet Part 3 — the POST Request

In NetSuite you can write a POST Request function. The only difference between NS GET and POST request is that the GET request passing values in its URI, however, POST request can pass an object body with the POST call. It’s the best practice to use GET request to get required data from NS and … Continue reading “RESTLet Part 3 — the POST Request”