Working with SDF Custom Objects in SuiteCloud Extension for Visual Studio Code

You can customize SDF custom objects by downloading their XML definitions from your account. The XML files are converted into SDF custom objects when you deploy them to your NetSuite account.

To see how to download XML definitions of objects, see Downloading the XML Definition of an Object from a NetSuite Account.

The following actions are available for working with SDF custom objects:

Listing SDF Custom Objects in SuiteCloud Extension for Visual Studio Code

You can list the SDF custom objects existing in your account.

To list the SDF custom objects:

  1. In VS Code, open the SuiteCloud project you want to list SDF custom objects in.

  2. Open the Command Palette and type suitecloud.

    From the dropdown list, select SuiteCloud: List Objects.

  3. From the dropdown list, select the SDF custom objects you want to list and press Enter. You can select only one, several, or all of them.

    Note:

    Scroll down the list to see all the available SDF custom objects.

    In the Output tab of VS Code, you can check the SDF custom objects of your account.

Updating SDF Custom Objects in SuiteCloud Extension for Visual Studio Code

You can overwrite the selected SDF custom objects in the project with their matching objects imported from your account. This is only supported for an SDF custom object that shares the same script ID and is the same object type as the corresponding object in your account. In the case of custom records, custom instances can be included.

To update SDF custom objects:

  1. In VS Code, open an SDF custom object from the Objects folder of your SuiteCloud project and make it active in the editor.

  2. Open the Command Palette and type suitecloud.

    From the dropdown list, select SuiteCloud: Update Object from Account.

    Tip:

    You can also trigger the command by right-clicking the SDF custom object file from the workspace and clicking Update Object from Account next.

    If the selected SDF custom object is a custom record, select whether to include the custom instances from the account.

  3. The project SDF custom object to be overwritten with its account version appears.

    From the dropdown list, select Continue to proceed.

    The SDF custom object open in the editor is overwritten with its version from the account, including its instances in the case of custom records.

Importing SDF Custom Objects from a NetSuite Account with SuiteCloud Extension for Visual Studio Code

You can import SDF Custom Objects from a NetSuite account to your project directly from VS Code.

To import SDF custom objects from the account:

  1. In VS Code, open the Command Palette and type suitecloud.

  2. From the dropdown list, select SuiteCloud: Import Objects.

  3. For SuiteApps, select whether you want to import SDF custom objects in a SuiteApp from a specific SuiteApp. If so, press Enter to use the application ID of the current project or type your application ID.

  4. From the dropdown list, select the SDF custom objects you want to import. For example, addressForm. You can select only one, several, or all of them.

    Note:

    Scroll down the list to see all the available SDF custom objects.

  5. Filter in the SDF custom objects list by entering the full or partial script ID. Click Enter if you do not want to filter.

  6. Select whether you want to import the SuiteScript files referenced in the SDF custom objects.

  7. To confirm that the SDF custom objects in the SuiteCloud project are overwritten with the matching objects from the account, click Continue when prompted.

    A message with the result pops up.

Related Topics

General Notices