Manually Defining Account Component Dependencies in the Account Customization Project Manifest
In account customization projects, you can set up dependencies on existing SDF custom objects, files, and scripts from a NetSuite account.
To manually define dependencies on account components:
-
Open the
manifest.xmlfile. -
Add a
dependencieselement if one does not already exist. -
Inside the
dependencieselement, add anobjectselement to reference your SDF custom objects that exist in the target account or afileselement to reference your files and scripts that exist in the target account. -
To reference an object, inside the
objectselement, use theobjectXML tag to reference an SDF custom object that exists in the target NetSuite account. -
To reference a file, inside the
fileselement, use thefileXML 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
dependencieselement should look similar to the following XML if you reference an SDF custom object namedcustomrecord_samplelocated in the target account, and a script namedext_UserScript.jslocated 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
dependencieselement may also include afeatureselement 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 make sure 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.