SuiteScript Server Pages Feature for Custom Web Store

SuiteScript Server Pages enable dynamic web store customizations in NetSuite, leveraging SuiteScript 1.0 and 2.0 technologies effectively.

·3 min read·View Oracle Docs

SuiteScript Server Pages (SSP) empower NetSuite developers to create and customize web store applications effectively. This feature incorporates various components to enhance web presence and dynamic content generation, necessary for effective eCommerce strategies.

What Are SuiteScript Server Pages?

SSP applications allow developers to create, view, and manage dynamic web content. Key features include:

  • SuiteScript Server Pages: Essential for building, viewing, and customizing applications.
  • SuiteScript 2 Server Pages: This enables the use of SuiteScript 2.0 for developing SSP applications. It's important to note that applications built with SuiteScript 1.0 continue to function as expected with this feature enabled.

Enabling SuiteScript Server Pages

To successfully implement SSP applications, enable the following features:

  • SuiteScript Server Pages: Required to create, view, or customize SSP applications.
  • SuiteScript 2 Server Pages: Necessary for utilizing SuiteScript 2.0 in SSP applications.

Permissions are also crucial; users must have SuiteScript permission to access SSP Application records. This permission can be set up under Setup > Users/Roles > Manage Roles.

Understanding the SSP Application Record

The SSP Application record serves as the central object in NetSuite to manage website customizations. This record encompasses various properties important for deployment and functionality:

PropertyDescription
Application FolderFolder in the File Cabinet holding customization files.
URL RootRoot for web store links to SSP assets.
Supported Touch PointsEntry points where the SSP application can generate dynamic content (defined only for SuiteScript 1.0 applications).
Default SSP FileControls the dynamic content generation (applicable for SuiteScript 2.0).
Sites and DomainsDesignates where the SSP application is deployed (only for SuiteScript 2.0).

Precedence in SSP Applications

When multiple SSP applications share the same URL and hosting root, NetSuite employs a precedence system to determine which application processes a request. Notably, this system does not apply to SuiteScript 2.0 applications as they cannot share a URL and hosting root simultaneously.

Supported File Types in SSP Applications

SSP applications support specific file types to enable web store customizations:

  • .ssp files: These are SuiteScript Server Pages that can be written in HTML or server-side SuiteScript, allowing for dynamic content building with includes, suitelets, and RESTlets.
  • .ss files: Serving as special request handlers written in SuiteScript, these files can manage both frontend and backend processes, responding with various output formats.

Both file types are executed on the server, providing access to SuiteScript APIs for server-side operations. SSP applications crafted with SuiteScript 1.0 can also utilize the Commerce API for further customization needs.

Commerce API Usage

The Commerce API is integral for customizing web stores on the SuiteCloud platform, providing access to unique web store objects and related methods. However, it's important to note that this API is not compatible with SSP applications developed using SuiteScript 2.0.

Related Topics

To dive deeper into SSP applications, the following topics are recommended:

  • SSP Applications Compared to Customization with SuiteScript
  • Create and Use SSP Applications
  • Upload SSP Application Files
  • Debug a SuiteScript 1.0 SSP Application

Key Takeaways

  • SuiteScript Server Pages enable robust web store customization in NetSuite.
  • Both SuiteScript 1.0 and 2.0 can be leveraged for SSP applications, each with specific requirements.
  • SSP applications utilize a structured precedence for requests based on URL sharing.

Source: This article is based on Oracle's official NetSuite documentation.

Frequently Asked Questions (4)

What permissions are required to access SuiteScript Server Pages?
Users must have SuiteScript permission to access SSP Application records, which can be set up under Setup > Users/Roles > Manage Roles.
How do SuiteScript Server Pages handle multiple applications with the same URL and hosting root?
NetSuite uses a precedence system to determine which application processes a request, but this does not apply to SuiteScript 2.0 applications as they cannot share a URL and hosting root simultaneously.
Are SuiteScript 1.0 applications supported with the new SuiteScript Server Pages feature?
Yes, applications built with SuiteScript 1.0 will continue to function as expected with the SuiteScript Server Pages feature enabled.
Can the Commerce API be used with SuiteScript 2.0 SSP applications?
No, the Commerce API is not compatible with SSP applications developed using SuiteScript 2.0.
Source: SuiteScript Server Pages Feature Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in SuiteScript

View all SuiteScript articles →