The CDS Explorer view in VSCode is where you can view connected servers, organizations and drill down to what’s inside of them. You can find the CDS Explorer view by clicking the icon to the left added by the CDS for Code extension.
Here’s an example of what the CDS Exporer will look like:
The CDS for Code extension offers many ways to connect to different CDS instances. This would include On-Premises, Online servers and On-Premises servers behind an Azure AD with a registered client applicaton.
To connect to Dynamics 365 On-Premises through the CDS for Code extension:
Here is an example of what it will look like:
To connect to CDS Online through the CDS for Code extension:
Here is an example of what it will look like:
Connecting with Azure AD will registering an App Registration. You can read about setting up Azure AD App registrations here. This App Registration will also have to expose your API to authenticated applications. There’s more information on configuring App Registration API’s here.
To connect to CDS using your App Registration through the CDS for Code extension:
Coming soon!
Once you have connected to CDS, your connections will be listed in CDS explorer. At any time you can edit your connection by mousing over the desired connection to edit and clicking the pencil icon displayed. Once you are done editing your connection you can click the Save button to store the updated connection.
It will look similar to this:
CDS for Code has extensive security features for storing your credentials.
Note: When unpacking solutions using CDS for Code, it requires that you have a workspace open in VSCode. This can be done by selecting File > Open Folder You can select an existing folder or create a new folder and select it to be open.
Unpacking a solution using CDS Explorer:
Unpacking a solution using VSCode File Explorer:
Unpacking a solution using the VSCode command palette:
Once your solution is unpacked, should you choose to view the log file it will be automatically open for you in the VSCode editor.
It will look similar to this:
2020-01-22 11:54:22.801 - Info
Extracting C:\Users\ira\AppData\Local\Temp\CSTestSolution\CSTestSolution.zip to c:\dev\_blank\demo\solutions\CSTestSolution
2020-01-22 11:54:22.811 - Info Resource template will be generated for default solution language.
LCID:1033 ISO Code:en-US.
2020-01-22 11:54:22.821 - Info Localizing Assets...
2020-01-22 11:54:22.822 - Info Localizing component: Templates
2020-01-22 11:54:22.822 - Info Localizing component: EntityMaps
2020-01-22 11:54:22.822 - Info Localizing component: Entities
2020-01-22 11:54:22.822 - Info Localizing component: Workflows
2020-01-22 11:54:22.823 - Info Localizing component: SolutionManifest
2020-01-22 11:54:22.822 - Info Localizing component: Roles
2020-01-22 11:54:22.822 - Info Localizing component: FieldSecurityProfiles
2020-01-22 11:54:22.824 - Info Localizing component: EntityRelationships
2020-01-22 11:54:22.825 - Info Localizing component: CustomControls
2020-01-22 11:54:22.825 - Info Localizing component: SolutionPluginAssemblies
2020-01-22 11:54:22.825 - Info Localizing component: EntityDataProviders
2020-01-22 11:54:22.825 - Info Localizing component: optionsets
2020-01-22 11:54:22.831 - Info Writing string resources...
2020-01-22 11:54:22.849 - Info
2020-01-22 11:54:22.852 - Info Processing Component: Entities
2020-01-22 11:54:22.852 - Info - Account
2020-01-22 11:54:22.855 - Info Processing Component: Roles
2020-01-22 11:54:22.856 - Info Processing Component: Workflows
2020-01-22 11:54:22.856 - Info Processing Component: FieldSecurityProfiles
2020-01-22 11:54:22.856 - Info Processing Component: Templates
2020-01-22 11:54:22.857 - Info Processing Component: EntityMaps
2020-01-22 11:54:22.857 - Info Processing Component: EntityRelationships
2020-01-22 11:54:22.859 - Info Processing Component: optionsets
2020-01-22 11:54:22.859 - Info Processing Component: CustomControls
2020-01-22 11:54:22.859 - Info Processing Component: SolutionPluginAssemblies
2020-01-22 11:54:22.859 - Info - PluginNumberOne, Version=1.0.0.4, Culture=neutral, PublicKeyToken=f6e51c6c6ceee668
2020-01-22 11:54:22.861 - Info - PluginNumberTwo, Version=1.0.0.2, Culture=neutral, PublicKeyToken=f6e51c6c6ceee668
2020-01-22 11:54:22.862 - Info Processing Component: EntityDataProviders
2020-01-22 11:54:22.863 - Info
Unmanaged Extract complete.
Note: When packing solutions using CDS for Code, it requires that you have a workspace open in VSCode. This operation also requires you have a solution unpacked to a folder within your workspace.
Packing a solution using VSCode File Explorer:
Packing a solution using the VSCode command palette:
Once your solution is packed and deployed, should you choose to view the log file it will be automatically open for you in the VSCode editor.
It will look similar to this:
2020-01-22 12:06:07.432 - Info
Packing c:\dev\_blank\demo\solutions\CSTestSolution to C:\Users\ira\AppData\Local\Temp\CSTestSolution\CSTestSolution.zip
2020-01-22 12:06:07.439 - Info Processing Component: Entities
2020-01-22 12:06:07.441 - Info - Account
2020-01-22 12:06:07.447 - Info Processing Component: Roles
2020-01-22 12:06:07.448 - Info Processing Component: Workflows
2020-01-22 12:06:07.449 - Info Processing Component: FieldSecurityProfiles
2020-01-22 12:06:07.449 - Info Processing Component: Templates
2020-01-22 12:06:07.449 - Info Processing Component: EntityMaps
2020-01-22 12:06:07.449 - Info Processing Component: EntityRelationships
2020-01-22 12:06:07.452 - Info Processing Component: OrganizationSettings
2020-01-22 12:06:07.453 - Info Processing Component: optionsets
2020-01-22 12:06:07.453 - Info Processing Component: CustomControls
2020-01-22 12:06:07.455 - Info Processing Component: SolutionPluginAssemblies
2020-01-22 12:06:07.459 - Info - PluginNumberOne, Version=1.0.0.4, Culture=neutral, PublicKeyToken=f6e51c6c6ceee668
2020-01-22 12:06:07.461 - Info - PluginNumberTwo, Version=1.0.0.2, Culture=neutral, PublicKeyToken=f6e51c6c6ceee668
2020-01-22 12:06:07.462 - Info Processing Component: EntityDataProviders
2020-01-22 12:06:07.492 - Info
Unmanaged Pack complete.
Once you have a registered connection to CDS you can manage the solution directly within CDS by:
You will be taken directly to manage the solution components in your browser.
Adding or removing solution components with the VSCode command palette:
Adding and removing solution components in CDS Explorer: