Categories
Searches

11 Search Columns in SuiteScript 2.0

In this edition, we explore working with Search Columns in SuiteScript 2.0. To coincide with this series on Searching, I have also created a series of SuiteScript cookbooks focused on Searching. If you are tired of NetSuite’s unrealistic or broken examples, then these cookbooks are for you. Creating Search Columns We begin by looking at […]

Categories
Searches

10 Search Filters in SuiteScript 2.0

In this edition, we explore creating our own Searches and working with Search Filters in SuiteScript 2.0. To coincide with this series of articles on Searching, I have also created a series of SuiteScript cookbooks focused on Searching. If you are tired of NetSuite’s unrealistic or broken examples, then these cookbooks are for you. Creating […]

Categories
Searches

9 Introduction to Searching with SuiteScript 2.0

In this edition, we start looking at how to transition our Searches from SuiteScript 1.0 over to 2.0. This is quite an important and lengthy concept in SuiteScript, so we’ll be exploring Searching over several weeks. To coincide with this series of articles on Searching, I have also created a series of SuiteScript cookbooks focused […]

Categories
Troubleshooting Tutorial

8 SuiteScript 2.0 in the Console

In this edition, we take a brief look at how to test out SuiteScript 2.0 code in our browser console. We can use our browser’s Developer Tools in order to quickly test and experiment with SuiteScript without creating an entirely new Script. In SuiteScript 1.0, all of our functions and Objects were available globally, so […]

Categories
Searches

7 Field Lookups in SuiteScript 2.0

NetSuite’s lookup feature allows users to very quickly retrieve body-level data for a particular record without having to load the entire record on a page. This feature is provided by the nlapiLookupField function in SuiteScript 1.0 and the N/search module’s lookupFields method in SuiteScript 2.0. N/search#lookupFields Assume we import the N/search module like so:

[…]

Categories
Records

6 Inline Editing in SuiteScript 2.0

NetSuite’s inline editing feature allows users to very quickly modify and update the data for a particular record without having to load the entire record on a page, edit the form, then save the record. NetSuite developers can also leverage inline editing via SuiteScript’s submitFields functionality. This feature is provided by the nlapiSubmitField function in […]

Categories
Troubleshooting

5 Logging in SuiteScript 2.0

Logging is an incredibly important tool in software development, and that’s no different in SuiteScript. We use logging to write messages to our Script’s Execution Log. These messages can help us track down errors, audit the execution path of the script, and trace through data values as the script progresses. In SuiteScript 1.0, we added […]

Categories
Sublists

4 Working with Sublists in SuiteScript 2.0

Earlier in the series, we looked at how the N/record module allows us to work with records and body fields. That same module allows us to work with sublists on those records. We’ll be demonstrating how the 1.0 sublist APIs have been converted in to 2.0 as well as some significant changes to the behaviour […]

Categories
Records

3 Working with Records in SuiteScript 2.0

Maybe the most fundamental concept to master in SuiteScript is working with NetSuite’s Record objects. Records are our interface to the NetSuite database. If we’re unable to work with records, we are pretty useless as NetSuite developers, so in this article we will investigate how we modify record objects in SuiteScript 2.0 as compared to […]

Categories
Tutorial

2 SuiteScript 2.0 Modules

This is the first article in a series focused on transitioning from SuiteScript 1.0 to SuiteScript 2.0. We kick off this series by introducing the fundamental concept that drives all of SuiteScript 2.0: the “Module”. SuiteScript 2.0 is entirely based on a concept called “modules”. These modules give us the capability to structure and organize […]