Author Archives: Dave Corun

Why there no Windows 9

A few people have asked and I saw a post on Reddit yesterday from someone claiming to be a dev at MSFT. It’s because of compatibility issues.  A ton of code was written back in Windows 95/98 days that does … Continue reading

Posted in Development | 2 Comments

Querying Active Directory for Domain Names

When creating users through the CRM SDK you must specify the domain name.  However in some situations you may not have the user’s domain name if the environment has multiple Active Directory domains within a forest. Here is a code … Continue reading

Posted in Development | Leave a comment

$ vs. jQuery

Short Version: Use jQuery, not $ Long Version: When I was a younger man, I had to battle a rather complex bug in an application with 6 different JavaScript frameworks and different versions of each one.  It was a mess. … Continue reading

Posted in Development | 1 Comment

CRM 2011–Retrieve Plugin

So you want to write a plugin that executes every time a user opens a record. Usually this would be frowned upon because this code could easily present a performance issues, especially if the data you’re gathering is hosted on … Continue reading

Posted in Development | Tagged | 12 Comments

Creating Business Units and Teams Programmatically

Assumed Background Information: Introduction to Entities in Microsoft Dynamics CRM http://msdn.microsoft.com/en-us/library/gg309396.aspx You may find yourself working on a complex CRM implementation where you need to create a number of Business Units and Teams. You may find it helpful to create … Continue reading

Posted in Development | Tagged | 1 Comment

Learning SQL

Hey how are you? What steps should I take to become a SQL Developer?   If I was just learning, I would start by installing the SQL Server Express edition locally (free): http://www.microsoft.com/express/Database/ It should come with a number of … Continue reading

Posted in Development | Leave a comment

Dynamics CRM 4.0 –Custom ASPX Page in a Multi-Tenancy Environment

  When OnPremise Dynamics CRM 4.0 is configured with a single organization, it sends the organization name in the query string. When OnPremise Dynamics CRM 4.0 is configured with multiple organizations, it sends the organization name in the path. Here’s … Continue reading

Posted in Development | Tagged | Leave a comment

Multi-Tenancy IFRAMEs in Dynamics CRM 4.0

Before var url = "/userdefined/areas.aspx?oId=" + oId + "&oType=" + oType + "&security=" + security + "&tabSet=" + tabSet; After var url = prependOrgName("/userdefined/areas.aspx?oId=" + oId + "&oType=" + oType + "&security=" + security + "&tabSet=" + tabSet); http://msdn.microsoft.com/en-us/library/cc905758.aspx   … Continue reading

Posted in Development | Tagged | Leave a comment

Good Blog Post

10 Reasons Developers Should Blog   // Dave

Posted in Development | Leave a comment

Validation Messages – MVVM Approach

What follows is a simple way to carry along a collection of Validation Messages in your ViewModel, and then bind them to the UI at runtime.   The first step is to create an ObservableCollection of validation messages on the … Continue reading

Posted in Development | Tagged , | Leave a comment