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:
-
Open the
manifest.xml
file. -
Add a
dependencies
element if one does not already exist. -
Inside the
dependencies
element, add anobjects
element to reference your SDF custom objects that exist in the target account or afiles
element to reference your files and scripts that exist in the target account. -
To reference an object, inside the
objects
element, use theobject
XML tag to reference an SDF custom object that exists in the target NetSuite account. -
To reference a file, inside the
files
element, use thefile
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 namedcustomrecord_sample
located in the target account, and a script namedext_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 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 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.
-
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.