Manually Defining Bundle Object Dependencies from the SuiteCloud Project Manifest

You can define dependencies on bundle objects that are outside your SuiteCloud project if they are NetSuite components supported by SuiteCloud Development Framework (SDF). You must specify the object(s) your bundle depends on, and the bundle that the object is part of.

To define the bundles your SuiteApp project depends on:

  1. Open the manifest.xml file.

  2. Add the following elements if they do not already exist:

    Add a dependencies element.

    Inside the dependencies element, add a bundles element.

  3. Inside the bundles element, add a bundle element. Specify the bundle id, for example: <bundle id=”123”>

    Note:

    Bundle IDs are always digits only.

  4. Inside the bundle element, add an objects element. Use the object XML tag to reference an object by script id.

    For example, your dependencies element should look similar to the following XML if you reference bundles 100, 200, and 300, which are copies of one another:

                    <bundles>
    
        <bundle id="100|200|300"/>
    
    </bundles> 
    
                  
    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.

  5. Save the file.

    You can now reference an object that is external to your SuiteCloud project. For more information, see Specifying a Bundle Object Reference.

  6. Validate the project against the target NetSuite account to ensure that the dependencies are correct.

    For more information about validation, 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.

To define objects in the bundle your SuiteApp project depends on:

  1. Open the manifest.xml file.

  2. Add the following elements if they do not already exist:

    Add a dependencies element.

    Inside the dependencies element, add a bundles element.

  3. Inside the bundles element, add a bundle element. Specify the bundle id, for example: <bunde id=”123”>

    Note:

    Bundle IDs are always digits only.

  4. Inside the bundle element, add an objects element. Use the object XML tag to reference an object by script id.

    For example, your dependencies element should look similar to the following XML if you reference the SDF custom objects named custrecord_wheel and customrecord_train that are part of the bundle 351:

                    <dependencies>
    
        <bundles>
    
            <bundle id="351">
    
                <objects>
    
                    <object>customrecord_car.custrecord_wheel</object>
    
                    <object>customrecord_train</object>
    
                </objects>
    
            </bundle>
    
        </bundles>
    
    </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.

  5. Save the file.

    You can now reference an object that is external to your SuiteCloud project. For more information, see Specifying a Bundle Object Reference.

  6. Validate the project against the target NetSuite account to ensure that the dependencies are correct.

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

Related Topics

SuiteApp Bundle Object Dependencies for SuiteCloud Projects

General Notices