Defining Dependencies on SDF Custom Objects in a SuiteApp and Bundle Objects with SuiteCloud IDE Plug-in for WebStorm

Note:

SuiteBundler is still supported, but it will not be updated with any new features.

To take advantage of new features for packaging and distributing customizations, you can use the Copy to Account and SuiteCloud Development (SDF) features instead of SuiteBundler.

Copy to Account is an administrator tool that you can use to copy SDF custom objects between your accounts. The tool can copy one SDF custom object at a time, including dependencies and data. For more information, see Copy to Account.

SuiteCloud Development Framework is a development framework that you can use to create SuiteApps from an integrated development environment (IDE) on your local computer. For more information, see SuiteCloud Development Framework.

You can define dependencies on SDF custom objects in a SuiteApp that are external to your SuiteCloud project if they are objects supported by SDF. For more information about object dependencies, see:

If your project does not contain any references to the object dependency, you must define the dependency manually. For more information, see Manually Defining SDF Custom Object Dependencies in a SuiteApp Using the SuiteCloud Project Manifest.

For examples of a project manifest with dependencies for an SDF custom object in a SuiteApp, see Example 1 and Example 2.

To add dependencies for an SDF custom object in a SuiteApp to the project manifest:

  1. From the Project window in WebStorm, right–click the SuiteCloud project.

  2. Select NetSuite > Add Dependency References to Manifest.

    SDF evaluates the SDF custom objects in a SuiteApp that are referenced in the SuiteCloud project and adds any new dependencies to the manifest.xml file.

Example 1

The following example shows a SuiteApp project manifest that references an SDF custom object called customrecord_sample that is not part of the project. During a server-side validation against a NetSuite account, SDF logs any referenced SDF custom object that is missing from the account.

          <manifest projecttype="SUITEAPP">
    <publisherid>com.example</publisherid>
    <projectid>mysuiteapp</projectid>
    <projectname>SDFSample</projectname>
    <projectversion>1.0.0</projectversion>
    <frameworkversion>2.0</frameworkversion>
    <dependencies>
        <applications>
            <application id="com.example.mysuiteapp">
                <objects>
                    <object>customrecord_sample</object>
                </objects>
            </application>
        </applications> 
    </dependencies>
</manifest> 

        

Example 2

The following example shows a SuiteApp project manifest that uses references to depend on the following SDF custom objects:

          <manifest projecttype="SUITEAPP">
    <publisherid>com.example</publisherid>
    <projectid>mysuiteapp</projectid>
    <projectname>SDFSample</projectname>
    <projectversion>1.0.0</projectversion>
    <frameworkversion>2.0</frameworkversion>
    <dependencies>
        <applications>
            <application id="com.example.mysuiteapp">
                <objects>
                    <object>customrecord_sample</object>
                </objects>
            </application>
        <bundles>
            <bundle id="351">
                    <object>customrecord_sample2</object>
               </bundle>
            <bundle id ="451|452|453">
                     <object>customrecord_sample3</object>
            </bundle>
        </bundles>
        </applications> 
    </dependencies>
</manifest> 

        

Related Topics

Adding Dependencies to the Manifest in SuiteCloud IDE Plug-in for WebStorm
Defining Account Component Dependencies from an Account Customization Project in SuiteCloud IDE Plug-in for WebStorm
Defining Feature Dependencies in SuiteCloud IDE Plug-in for WebStorm

General Notices