Defining Account Component Dependencies from an Account Customization Project in SuiteCloud IDE Plug-in for WebStorm

You can define dependencies on existing objects, files, and scripts from your NetSuite accounts in an account customization project. For more information, see:

If your project doesn't have any references to the dependency, you must define it manually. For more information, see Manually Defining Account Component Dependencies in the Account Customization Project Manifest.

For an example of a project manifest with dependencies for an SDF custom object in a SuiteApp, see Example.

To automatically define account component dependencies:

  1. Int the Project window in WebStorm, right-click the SuiteCloud project.

  2. Select NetSuite > Add Dependency References to Manifest.

    SDF checks the objects, files, and scripts that are referenced in your account but outside of the SuiteCloud project, and adds any new dependencies to the manifest.xml file.

    Note:

    This option doesn't remove dependencies that are not referenced by any objects.

Example

Here's an example of an account customization project manifest that references objects and files that aren't part of the project, like customrecord_sample, customworkflow_sample, customlist, and ext_UserScript.js. During a server-side validation against a NetSuite account, SDF logs any referenced object or file that is missing from the account.

          <manifest projecttype="ACCOUNTCUSTOMIZATION">
    <projectname>SDFTutorial</projectname>
    <frameworkversion>1.0</frameworkversion>
    <dependencies>
        <features>
            <feature required="true">CUSTOMRECORDS</feature>
            <feature required="true">SERVERSIDESCRIPTING</feature>
        </features>
        <objects>
            <object>customrecord_sample</object>
            <object>customworkflow_sample</object>
            <object>customworkflow_sample.workflowstate_a</object>
            <object>customlist_sample.red</object>
            <object>customlist_sample.green</object>
            <object>customlist_sample.blue</object>
        </objects>
        <files>
            <file>/SuiteScript/reference/ext_UserScript.js</file>
        </files>
    </dependencies>
</manifest> 

        

Related Topics

General Notices