SuiteScript 1.0 vs 2.0 for SSP Applications
Compare SuiteScript 1.0 and 2.0 for SSP applications, highlighting key differences in syntax, deployment, and functionality.
The ability to create SuiteScript (SSP) applications in either SuiteScript 1.0 or 2.0 is critical for developers in the NetSuite ecosystem. However, it is important to note that both versions cannot be combined within a single SSP application. Each application must strictly adhere to one version, which significantly affects how they are created, deployed, and operated.
Key Differences Between SuiteScript 1.0 and 2.0
-
Syntax Variation
SuiteScript 2.0 applications require scripts to begin with the declaration:
<%@ NApiVersion="2.x"%>
This ensures that the script uses the most recent minor version of SuiteScript 2.0. In contrast, no such declaration is necessary for SuiteScript 1.0 applications. -
Deployment Requirements
SuiteScript 2.0 applications must be explicitly deployed to a website or specific domain to be accessible. This is different from SuiteScript 1.0 applications, which become available by default. Developers need to consider if they want an application accessible across all domains associated with a website or limited to a single domain. -
Deployment Limitations
Only one SuiteScript 2.0 SSP application is permitted per URL root per domain. Therefore, if there's an existing application at a specific URL, it must be undeployed before another can be deployed to the same path. -
Touch Points
SuiteScript 2.0 applications do not support touch points. Instead, they utilize a default SSP file as an entry point. While this means fewer entry options, it simplifies the architecture required for these applications. Currently, customizable default SSP files need to be implemented, but future updates may allow broader configuration options.
Future Features
In upcoming releases, it is anticipated that selection of default SSP files for specific domains or websites will improve, allowing for seamless backend processing, live website services, and more accessible functionality linked directly to the application roots.
Conclusion
Given these differences, developers must carefully evaluate which SuiteScript version to utilize based on their specific SSP application requirements. Understanding the implications of each choice will lead to more robust applications tailored to user needs.
Key Takeaways
- Choose SuiteScript 1.0 or 2.0 based on your SSP application needs.
- Deployment is explicit in SuiteScript 2.0, requiring an understanding of domain settings.
- Only one SuiteScript 2.0 application can share a URL root, requiring management of deployments.
- Touch points are absent in SuiteScript 2.0, with a default SSP file needed for entry.
- Future updates may enhance SSP application configurations and deployment options.
Frequently Asked Questions (4)
Can SuiteScript 1.0 and 2.0 be combined within a single SSP application?
What is required for deploying SuiteScript 2.0 applications?
Are multiple SuiteScript 2.0 SSP applications allowed per URL root per domain?
What are the entry point requirements for SuiteScript 2.0 applications?
Was this article helpful?
More in SuiteScript
- Scheduling Map/Reduce Script Submissions in NetSuite
Learn how to schedule map/reduce scripts for one-time or recurring submissions in NetSuite, enhancing automation and efficiency.
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
- Binary File Support in N/https Module for SuiteScript
SuiteScript enhances capabilities with binary file support in the N/https module, allowing improved data handling in external communications.
- Attach and Detach Operations in NetSuite 2026.1
Attach and detach operations for record relationships in NetSuite enhance data management and connectivity.
