SDF Installation Script Object Example

The following example is an XML definition of the SuiteCloud Development Framework (SDF) installation script that executes the checkpreference_fail.js SuiteScript in SDF Installation Script Example of Validating an Account Preference Before Installation.

          <sdfinstallationscript scriptid="customscript_install_script">
    <name>Install Script Demo</name>
    <notifyowner>T</notifyowner>
    <notifyuser>F</notifyuser>
    <scriptfile>[/SuiteApps/com.netsuite.example/checkpreference_fail.js]</scriptfile>
        <scriptdeployments>
            <scriptdeployment scriptid="customdeploy1">
            <isdeployed>T</isdeployed>
            <loglevel>ERROR</loglevel>
            <status>RELEASED</status>
            <title>Demo Deployment</title>
        </scriptdeployment>
    </scriptdeployments>
</sdfinstallationscript> 

        

To run the script referenced in this definition, you must update the SuiteApp project deploy file. See Deploy File that Runs SDF Installation Script Example.

For more information about SDF installation script, see SuiteScript 2.x SDF Installation Script Type.

Related Topics

SDF Installation Script Example of Validating an Account Preference Before Installation
SDF Installation SuiteScript File Example
Deploy File that Runs SDF Installation Script Example
Deployment Log Example

General Notices