Sample SSP Application Code (SuiteScript 2.0)

SuiteScript 2.0 SSP application files must also contain a directive declaring them to be written in SuiteScript 2.0. If this directive is missing, the files are treated as SuiteScript 1.0 files and will throw an error. The following directive must be the first directive in the .ssp file:

<%@ NApiVersion="2.0"%>


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: