Sample SSP Application Code (SuiteScript 2.0)

SuiteScript 2.0 SSP application files must begin with the following directive:

<%@ NApiVersion="2.x"%>

This directive ensures that the script automatically uses the latest minor version of SuiteScript 2.0. If this directive is not the first directive in the .ssp file, the file is treated as a SuiteScript 1.0 file and throws an error.

Note:

The use of @NScriptType annotation is not permitted in .ss or .ssp files.

The following simple Email Form example is intended to provide you with a basic idea of how .ssp and .ss files are structured for SSP applications written in SuiteScript 2.0. It contains three files:

Related Topics

Create a SuiteScript 2.0 SSP Application Record
Upload SSP Application Files to the File Cabinet
Set Execute as Role Permissions for .ss and .ssp Files
Select Default SSP File
Make SSP Application available on System Domain
Deploy and Undeploy SSP Applications
Sample SSP Application Code (SuiteScript 2.0)
Debug a SuiteScript 2.0 SSP Application
SuiteScript 2.0 SSP Applications
Create and Use SSP Applications

General Notices