Wednesday, April 6, 2011

XrmVisioER: CRM/xRM 2011 ER Diagram Generator

It's been a quite while I haven't keep in touch with Dynamics CRM and my XRM Notebook. I was been assigned to do research on Windows Communication Foundation (WCF) and Microsoft Enterprise Library (EntLib) to implement code generator for our new project.

Today, I am very happy to announce that I have successfully updated my "XrmVisioER Diagram Generator" for Microsoft Dynamics CRM 2011. Features will be the same as previous version of my "XrmVisioER Diagram Generator". Below is the screen shot for reference:

Feel free to use this application. Either leave comment or email me if you want to know further information or give suggestion to me.

System Requirements:
  • .NET Framework 4.0
  • Microsoft Visio 2010
  • Windows Identity Foundation (Both Client and Server)
Caution: For those who got application crash message, please install "Windows Identity Foundation" in your Client Computer and CRM 2011 Server. (Updated: 19/04/2011)

Download Link:
XrmVisioER: CRM/xRM 2011 ER Diagram Generator (Application)
XrmVisioER: CRM/xRM 2011 ER Diagram Generator (Source Code)

XrmVisioER: CRM/xRM ER Diagram Generator Revised Version (MS CRM 4.0)


Anonymous said...

Hi Thuta,

I just tried using on of our 2011 test bed but I got an error (application has stopped working) as soon as I click on login.
Am using a Win 7 with .Net4 installed and Vison 2010.
Thanks for your help.


Thuta Hlaing said...

Hi Didier,

Have you installed "Microsoft.IdentityModel" in your computer? Thanks!


Anonymous said...


I have installed Identity model still it prompts for the error "Application stopped working"


dumboo said...

Hi Thuta

Thanks for the great tool.

Is there any way the entities can list the attributes as well? Please respond at the earliest, I am really struck with this requirement. Thanks in Advance

Chad said...

Does this work for CRM 2011 Online?

Anonymous said...

I was getting the same thing and it was because the organization name was case sensitive. I changed line 64 of ADHeleper.cs to ...

if (orgs[n].FriendlyName.ToLower() == oConfig.OrganizationName.ToLower())

I also added a try catch to frmMain.cs Login() to set the label to the exception.

Hope that helps!

Anonymous said...

Actually it should be
if (orgs[n].UniqueName.ToLower() == oConfig.OrganizationName.ToLower())

Anonymous said...

Thanks so much for this. You need to use the friendly organization name. Works on Windows 7 only.

Stephen said...
This comment has been removed by the author.
Stephen said...

Thanks very much. Great tool!

Someone was asking about it working on CRM Online: yes it does work.

Just change the line of code that instantiates the oVisioDiagram object to put your own IOrganisationService in as a parameter and remove the validation on the textbox inputs. (in the Login method).

ClientCredentials credentials = new ClientCredentials();
credentials.UserName.UserName = "(my LiveID)";
credentials.UserName.Password = "(my Live password)";

ClientCredentials deviceCredentials = new ClientCredentials();
deviceCredentials.UserName.UserName = "(my device id)";
deviceCredentials.UserName.Password = "(my device password)";

Uri organizationUri = new Uri("https://(my organisation)");
Uri homeRealmUri = null;
OrganizationServiceProxy orgService = new OrganizationServiceProxy(organizationUri, homeRealmUri, credentials, deviceCredentials);
IOrganizationService service = (IOrganizationService)orgService;
oVisioDiagram = new VisioDiagram(service);

wikky said...


Can you be a little bit more specific with where this stuff needs to be changed? I am trying to get this to work for CRM Online but I am pretty new to development work. Thanks for your help

Ian said...

I've not been able to get this working, however this is excellent.

Is an update available to handle CRMOnline as well as CRM OnPremise?


Post a Comment