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.

Note:

A Suitelet that has the Available Without Login box checked on the script deployment cannot execute N/search Module and N/query Module module APIs in the client context.

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.

If you need to perform Outbound HTTPs calls in an unauthenticated client-side context, you must do so inside a Suitelet available without login and call that Suitelet using N/https#requestSuitelet() instead of calling one of the prohibited functions directly. See: Outbound HTTPs in an unauthenticated client-side context

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

SuiteScript 2.0 > Suitelet > Upload multiple files

Related Topics

SuiteScript 2.x Script Types
SuiteScript 2.x Bundle Installation Script Type
SuiteScript 2.x Client Script Type
SuiteScript 2.x Map/Reduce Script Type
SuiteScript 2.x Mass Update Script Type
SuiteScript 2.x Portlet Script Type
SuiteScript 2.x RESTlet Script Type
SuiteScript 2.x Scheduled Script Type
SuiteScript 2.x User Event Script Type
SuiteScript 2.x Workflow Action Script Type

General Notices