Defining a Script Record and Deployment for an SDF Installation Script
In SuiteCloud Development Framework (SDF), you can create new scripts and script records in your SuiteApp project or import existing scripts and records from a NetSuite account. To perform these tasks, see the following topics:
-
From your SuiteApp project, to create a new SDF installation script, see SuiteScript 2.x SDF Installation Script Type.
-
From a NetSuite account, to add a new SDF installation script, see Creating a Script Record.
-
From your SDF SuiteApp project, to add a new or existing SDF installation script, see:
-
Creating a SuiteScript File in SuiteCloud Extension for Visual Studio Code.
-
Creating an XML Definition for an SDF Custom Object in SuiteCloud IDE Plug-in for WebStorm.
Note:To use the NetSuite XML definition template for
sdfinstallationscript
objects, see SuiteCloud IDE Plug-in for Eclipse Guide. Thesdfinstallationscript
object includes a reference to the SuiteScript file and information about the file (through script record and script deployment definitions). The SuiteScript content is not part of the XML definition. -
The following image shows the SDF installation script record as it appears in the NetSuite UI.
![Script page for an SDF Installation script.](img/SuiteCloudCustomizationScriptingWebServices/SuiteCloudDevelopmentFramework/SDFInstallationScriptNetSuiteUIScriptRecord.png)
The following image shows an SDF installation deployment record as it appears in the NetSuite UI.
![The Deployments tab of the Script page for SDF Installation script.](img/SuiteCloudCustomizationScriptingWebServices/SuiteCloudDevelopmentFramework/SDFInstallationScriptNetSuiteUIDeploymentRecord.png)
The status
field is set to Testing, meaning that the script deploys for the deployment record owner only. Set the status to Released when you want others to be able to run the script.
For more information about SuiteScript deployment and script records, see the following: