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:
-
Open the
manifest.xml
file. -
Add the following elements if they do not already exist:
Add a
dependencies
element.Inside the
dependencies
element, add abundles
element. -
Inside the
bundles
element, add abundle
element. Specify the bundle id, for example:<bundle id=”123”>
Note:Bundle IDs are always digits only.
-
Inside the
bundle
element, add anobjects
element. Use theobject
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 afeatures
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. -
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.
-
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:
-
Open the
manifest.xml
file. -
Add the following elements if they do not already exist:
Add a
dependencies
element.Inside the
dependencies
element, add abundles
element. -
Inside the
bundles
element, add abundle
element. Specify the bundle id, for example:<bunde id=”123”>
Note:Bundle IDs are always digits only.
-
Inside the
bundle
element, add anobjects
element. Use theobject
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
andcustomrecord_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 afeatures
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. -
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.
-
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.