SuiteScript 2.x Suitelet Script Type

Suitelets are extensions of the SuiteScript API that allow you to build custom NetSuite pages and backend logic. Suitelets are server scripts that operate in a request-response model, and are invoked by HTTP GET or POST requests to system generated URLs.

There are two types of Suitelets:

  1. Suitelets use UI objects to create custom pages that look like NetSuite pages. SuiteScript UI objects encapsulate the elements for building NetSuite-looking portlets, forms, fields, sublists, tabs, lists, and columns.

  2. Backend Suitelets do not use any UI objects and execute backend logic, which can then be parsed by other parts of a custom application. Backend Suitelets are best used for the following purposes:

    • Providing a service for backend logic to other SuiteScripts.

    • Offloading server logic from client scripts to a backend Suitelet shipped without source code to protect sensitive intellectual property.

Note:

Suitelets are not intended for use in systems integration use cases.

Suitelets are not intended to work inside web stores. Use online forms to embed forms inside a web store.

Important:

RESTlets can be used as an alternative to backend Suitelets.

The governance limit for concurrent requests for Suitelets available without login is the same as the limit for RESTlets. For information about the account limits, see Web Services and RESTlet Concurrency Governance. For Suitelets that are authenticated through login, the number of concurrent requests is currently not governed.

You can use SuiteCloud Development Framework (SDF) to manage Suitelets as part of file-based customization projects. For information about SDF, see SuiteCloud Development Framework. You can use the Copy to Account feature to copy an individual Suitelet to another of your accounts. Each Suitelet page has a clickable Copy to Account option in the upper right corner. For information about Copy to Account, see Copy to Account.

You can use SuiteScript Analysis to learn about when the script was installed and how it performed in the past. For more information, see Analyzing Scripts.

See the following for more information about the Suitelet script type:

Also see the Suitelets and UI Object Best Practices section in the SuiteScript Developer Guide for a list of best practices to follow when using client scripts.

Related Support Article

Related Topics

General Notices