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

General Notices