SuiteScript 2.x Code Samples Catalog
This SuiteScript Code Samples Catalog contains code samples that you can use for reference. You can copy and update them to fit your needs.
Samples can also be found on the netsuite-suitecloud-samples github repository at: netsuite-suitecloud-samples.
This catalog includes the following sample categories. Note that each sample may be included in multiple categories.
-
SuiteScript 2.1 Samples – This section includes samples that use SuiteScript 2.1 code constructs.
-
SuiteScript Samples by Script Type – This section includes samples specific to each SuiteScript script type.
-
SuiteScript Samples by Function – This section includes samples that cover distinct SuiteScript functions and capabilities.
-
SuiteScript Samples by Module – This section includes samples for each SuiteScript API module. For more information about SuiteScript modules, see SuiteScript 2.x Modules
-
SuiteScript Samples That Use Promises – This section includes samples that use SuiteScript promise methods.
-
Custom Plug-in Samples – This section includes custom plug-in samples. For each plug-in code sample, you can read an associated help topic that describes the full context of the sample and includes additional implementation details. For more information, see Custom Plug-in Overview.
-
SuiteScript Use Cases Samples – This section includes full use case samples. These codes samples are a small portion of the full SuiteScript tutorials that describe how to perform functions in a step-by-step approach. For more information, see SuiteCloud Customization Tutorials.
You can also find a complete alphabetized listing of all samples in the SuiteScript Samples Catalog here: SuiteScript Samples Catalog Complete Listing.
The sample code included herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. Oracle +NetSuite Inc. does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in using their own Web server configurations. Oracle +NetSuite Inc. does not warrant, guarantee or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the sample code. Oracle +NetSuite Inc. disclaims all warranties, express or implied, and in particular, disclaims all warranties of merchantability, fitness for a particular purpose, and warranties related to the code, or any service or software related thereto. Oracle +NetSuite Inc. shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code.