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
-
Updating SDF Custom Objects in SuiteCloud Extension for Visual Studio Code
Listing SDF Custom Objects in SuiteCloud Extension for Visual Studio Code
You can list the SDF custom objects in your account.
To list the SDF custom objects:
-
In VS Code, open the SuiteCloud project where you want to list SDF custom objects.
-
Open the Command Palette and type
suitecloud
.From the dropdown, pick SuiteCloud: List Objects.
-
From the dropdown, pick the SDF custom objects you want to list and press Enter. You can select 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 see the SDF custom objects in 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 matching objects from your account. This only works for SDF custom objects that have the same script ID and object type as the ones in your account. For custom records, you can include custom instances too.
To update SDF custom objects:
-
In VS Code, open an SDF custom object from the Objects folder in your SuiteCloud project and make it active in the editor.
-
Open the Command Palette and type
suitecloud
.From the dropdown, pick SuiteCloud: Update Object from Account.
Tip:You can also run the command by right-clicking the SDF custom object file in the workspace and clicking Update Object from Account.
If the SDF custom object is a custom record, choose whether to include the custom instances from your account.
-
The project SDF custom object that will be overwritten with its account version appears.
From the dropdown, pick Continue to proceed.
The SDF custom object open in the editor gets overwritten with its version from the account, including its instances if it's a custom record.
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 right from VS Code.
To import SDF custom objects from the account:
-
In VS Code, open the Command Palette and type
suitecloud
. -
From the dropdown, select SuiteCloud: Import Objects.
-
For SuiteApps, select whether you want to import SDF custom objects ifrom a specific SuiteApp. If you do, press Enter to use the current `project's application ID or type your own.
-
From the dropdown, pick the SDF custom objects you want to import. For example,
addressForm
. You can select one, several, or all of them.Note:Scroll down the list to see all the available SDF custom objects.
-
Filter the SDF custom objects list by entering the full or partial script ID, or just press Enter if you don't want to filter.
-
Choose whether you want to import the SuiteScript files referenced in the SDF custom objects.
-
To confirm that the SDF custom objects in your SuiteCloud project are overwritten with the matching ones from your account, click Continue when prompted.
A message with the result pops up.
Related Topics
- SuiteCloud Extension for Visual Studio Code Usage
- Creating a SuiteCloud Project in SuiteCloud Extension for Visual Studio Code
- Setting Up NetSuite Accounts in SuiteCloud Extension for Visual Studio Code
- Managing NetSuite Accounts in SuiteCloud Extension for Visual Studio Code
- Listing SDF Custom Objects in SuiteCloud Extension for Visual Studio Code
- Updating SDF Custom Objects in SuiteCloud Extension for Visual Studio Code
- Creating a SuiteScript File in SuiteCloud Extension for Visual Studio Code
- Listing Files in SuiteCloud Extension for Visual Studio Code
- Updating a File from Your Account with SuiteCloud Extension for Visual Studio Code
- Uploading Files to Your Account with SuiteCloud Extension for Visual Studio Code
- Importing Files from a NetSuite Account with SuiteCloud Extension for Visual Studio Code
- Comparing a Local File with its Account Version with SuiteCloud Extension for Visual Studio Code
- Adding Dependencies to the Manifest in SuiteCloud Extension for Visual Studio Code
- Validating a SuiteCloud Project Against Your NetSuite Account with SuiteCloud Extension for Visual Studio Code
- Deploying a SuiteCloud Project to Your NetSuite Account with SuiteCloud Extension for Visual Studio Code