Loading...

Use Visual Studio Code Map to visualize your Dataverse code

Use Visual Studio Code Map to visualize your Dataverse code
Use Visual Studio Code Map to visualize your Dataverse code Lloyd Sebag Mon, 01/02/2023 - 11:35
Body

Use Visual Studio Code Map to visualize your Dataverse code

What an incredible feature I just discovered in Microsoft Visual Studio! Code Map! It will allow you to view and navigate through your code graphically via a viewer, which will greatly simplify your understanding of your C# solutions.

This could be very useful in the following cases:

  • Resumption of an existing project with legacy source code.
  • Documentation of your code.
  • And more... 
     

Warning, there is an important prerequisite, this feature is only available in the Enterprise version of Visual Studio.

Demonstration

Below, I will show you how to generate the Code Map for example for a Dataverse plugin. This example is based on this open source code offered by Microsoft that I found on GitHub.

Use Visual Studio Code Map to visualize your Dataverse code

It's an extremely simple plugin with only one class and references. You will see that it is possible in a few clicks to obtain the code map.

Step 1 : Open your solution 

Step 2 : Add a Directed Graph Document(.dgml) item to your project

Directed Graph Document

Use Visual Studio Code Map to visualize your Dataverse code

Step 3 : Drag and Drop the desired classes you want to explore

Use Visual Studio Code Map to visualize your Dataverse code

You will see the map appear just after

Use Visual Studio Code Map to visualize your Dataverse code

Then you can expand and start your navigation. 

Step 4 : You can generate the code map for the entire solution 

On the menu bar, choose Architecture > Generate Code Map for Solution. If your code hasn't changed since the last time you built it, you can select Architecture > Generate Code Map for Solution Without Building instead

Use Visual Studio Code Map to visualize your Dataverse code

Microsoft Documentation

Of course, my example is very simple and you imagine any other scenario that will match to your needs. You could use it for Plugins or any kind of other C# development. 

Coming from the official MS documentation, you can see a Code Map much more bigger that can show you the kind of things you can do. 

Use Visual Studio Code Map to visualize your Dataverse code

Finally, please find here the official documentation wherein you will find all the options and capabilities of this wonderful feature. Such as legends, filters, dependencies, ... 

Use Visual Studio Code Map to visualize your Dataverse code

Image
/sites/default/files/2023-01/Use%20Visual%20Studio%20Code%20Map%20to%20visualize%20your%20Dataverse%20code.png

Published on:

Learn more
Featured Articles | Dynamics Chronicles
Featured Articles | Dynamics Chronicles

Welcome to our blog, the content is entirely dedicated to Microsoft Dynamics 365, CRM, Power Platform, Common Data Service (CDS) but also Azure. Follow us !

Share post:

Related posts

Power Platform and Tenant Level Analytics

Today I’m looking at the Tenant Level Analytics setting. The Power Platform Admin Center is getting more and more features that we would...

19 hours ago

Microsoft 365 & Power Platform Call (Microsoft Speakers) – May 5th, 2026 – Screenshot Summary

Call Highlights   SharePoint Quicklinks: Primary PnP Website: https://aka.ms/m365pnp Documentation & Guidance SharePoint Dev Videos Issues...

1 day ago

Power Platform – Backup retention of Production environments is changing from 28 to 7 days

Starting May 11, 2026, the default backup retention for Power Platform environments will be changed from 28 days to 7. All environments will c...

2 days ago

🚀 Power Platform Solution Architect Roadmap (with Modern AI Skills)

The role of a Power Platform Solution Architect is rapidly evolving. It’s no longer just about building apps—it’s about designing intelligent,...

2 days ago

Power Platform – Enable Managed Environment to extend storage retention period

As of April 30, 2026, the default system backup retention period for Power Platform environments is 7 days. How does this affect me? System ba...

4 days ago

Invisible Power Platform Connection References

On a Power Platform with multiple developers Connections and Connection references can be tricky. You have some connection references added to...

5 days ago

Power Platform – Please hard refresh your active long-running browser tab(s)

We are completing a platform update across Power Platform that started on April 29, 2026, and is anticipated to be completed by May 31, 2026. ...

5 days ago

Power Platform governance and administration – Detect operational health issues across Power Platform resources quickly

We are announcing the ability to quickly detect when your organization’s apps, flows, and agents degrade in Microsoft Power Platform gov...

5 days ago

Step by Step | Power Shield – Govern Connector Access in Power Platform

In this article, let’s learn how to set up and use Power Shield — a governance feature in the Copilot Studio Kit that enables organizati...

6 days ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy