Manually Defining SDF Custom Object Dependencies in a SuiteApp Using the SuiteCloud Project Manifest
You can define dependencies on SDF custom objects that are external to your SuiteCloud project in SuiteCloud Development Framework (SDF), such as objects in another SuiteApp.
To manually define an external SuiteApp dependency:
-
Open the
manifest.xml
file. -
Add the following elements if they do not already exist:
Add a
dependencies
element.Inside the
dependencies
element, add anapplications
element. -
Inside the
applications
element, add anapplication
element. Specify the application id, for example:<application id=”publisherid.projectid”>
. -
Inside the
application
element, add anobjects
element. Use theobject
XML tag to reference an SDF custom object in a NetSuite account by the script id.For example, your
dependencies
element should look similar to the following XML if you reference an SDF custom object namedcustomrecord_sample
that is part of thecom.samples.mysuiteapp
project:<dependencies> <applications> <application id="com.example.mysuiteapp"> <objects> <object>customrecord_sample</object> </objects> </application> </applications> </dependencies>
Note:Your
dependencies
element may also include afeatures
element if your project uses any feature dependencies. For more information, see Defining Feature Dependencies in 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 Reference to an SDF Custom Object in Another SuiteApp.
-
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.