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

Tag: NetSuite

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”

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”

RESTLet in NetSuite Part 2.

Here I’m using PostMan to call this RestLet, but feel free to use other Apps to make the call. If you’re using PostMan, Please don’t put the Authorization inside the Authorization part, put it into the header field of the PostMan instead. When we send this GET request to call this RestLet, this RestLet will … Continue reading “RESTLet in NetSuite Part 2.”

RESTLet in NetSuite Part 1

In NetSuite System, there are two ways to set communications with external systems. For example, someone want build their own application to update records inside the Netsuite, or some other ERP/CRM systems want synchronizing with NetSuite, to update, import, or export records. NetSuite provides two ways to achieve this. The SuiteTalk platform and the RESTLet. … Continue reading “RESTLet in NetSuite Part 1”