Manually Defining Account Component Dependencies in the Account Customization Project Manifest

You can define dependencies on existing SDF custom objects, files, and scripts from a NetSuite account in the account customization project type of SuiteCloud project for SuiteCloud Development Framework (SDF).

To manually define dependencies on account components:

  1. Open the manifest.xml file.

  2. Add a dependencies element if one does not already exist.

  3. Inside the dependencies element, add an objects element to reference your SDF custom objects that exist in the target account or a files element to reference your files and scripts that exist in the target account.

  4. To reference an object, inside the objects element, use the object XML tag to reference an SDF custom object that exists in the target NetSuite account.

  5. To reference a file, inside the files element, use the file XML tag to reference the path to a file or script that exists in the target NetSuite account.

    Always use a forward slash ( / ) prefix in front of the path. The leading forward slash represents the root directory of the File Cabinet.

    For example, your dependencies element should look similar to the following XML if you reference an SDF custom object named customrecord_sample located in the target account, and a script named ext_UserScript.js located in the SuiteScript/reference folder of the File Cabinet:

                    <dependencies>
    
        <objects>
    
            <object>customrecord</object>
    
        </objects>
    
        <files>
    
            <file>/SuiteScript/reference/ext_UserScript.js</file>
    
        </files>
    
    </dependencies> 
    
                  
    Note:

    Your dependencies element may also include a features element if your project uses any feature dependencies. For more information, see Defining Dependencies on SDF Custom Objects in a SuiteApp and Bundle Objects with SuiteCloud IDE Plug-in for WebStorm.

  6. Save the file.

    You can now reference an objects, files, and scripts that are external to your SuiteCloud project. For more information, see Specifying an SDF Custom Object Reference or Specifying a Custom File or Script Reference.

  7. Validate the project against the target NetSuite account to ensure that the dependency references are correct.

    For more information, see Deploying a SuiteCloud Project to Your NetSuite Account with SuiteCloud Extension for Visual Studio Code or Validating a SuiteCloud Project with SuiteCloud IDE Plug-in for WebStorm.

Related Topics

General Notices