What is the MetaDiagram Utility?
When applying customisations to an existing Dynamics CRM environment, an understanding of the existing customisations is crucial.
Manually mapping out complex relationships between custom entities can be a painful and time consuming affair.
Unfortunately Microsoft doesn’t provide an out-of-the-box tool built into Dynamics 365…. However they have included a nifty little tool in the CRM SDK called MetaDiagramConsole.exe which allows you to generate Visio diagrams of entity relationship mappings.
How does it work?
- Download and extract the Microsoft CRM SDK
- Open and build the Visual Studio Solution. You can find it in SDK\SampleCode\CS\Metadata\Diagram. You’ll need to add the missing references to the CRM SDK DLL’s so that it compiles successfully.
- Run the compiled MetadataDiagram.exe application from the command prompt e.g. “MetadataDiagramConsole.exe new_myNewEntity”.
- The tool will connect to your specified Dynamics CRM environment, extract the metadata and generate a Visio (*.VSD) entity relationship diagram in your local directory.
This tool has been super valuable for me, in particular when entering new client environments with little existing documentation (geez … thanks guys!).
You can find more information about it here https://msdn.microsoft.com/en-us/library/jj602918.aspx
Hope you find it as useful as I have!
This blog is my place to share my thoughts, helpful solutions and just random nerdy stuff.
Latest posts by Shane Bartholomeusz (see all)
- MB2-716 Dynamics 365 Exam Guide - 16th May 2019
- How To: Backup Synology NAS to Azure Cloud - 11th April 2019
- How To: Create Dynamics 365 Entity Relationship Diagram - 13th March 2019