Manually Defining SDF Custom Object Dependencies in a SuiteApp Using the SuiteCloud Project Manifest
In SuiteCloud Development Framework (SDF), you can define dependencies on SDF custom objects that are external to your SuiteCloud project, such as objects in another SuiteApp.
To manually define an external SuiteApp dependency:
-
Open the
manifest.xmlfile. -
Add the following elements if they aren't already there:
Add a
dependencieselement.Inside the
dependencieselement, add anapplicationselement. -
Inside the
applicationselement, add anapplicationelement. Specify the application id, for example:<application id=”publisherid.projectid”>. -
Inside the
applicationelement, add anobjectselement. Use theobjectXML tag to reference an SDF custom object in a NetSuite account by the script id.For example, your
dependencieselement should look similar to the following XML if you reference an SDF custom object namedcustomrecord_samplethat is part of thecom.samples.mysuiteappproject:<dependencies> <applications> <application id="com.example.mysuiteapp"> <objects> <object>customrecord_sample</object> </objects> </application> </applications> </dependencies>Note:Your
dependencieselement may also include afeatureselement 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 make sure 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.