Update Optionset Values in Header

CRM 2013 allows us to have updateable fields in the header.  Great!  One thing I’ve wanted in a number of scenarios is an updatable Status Reason field up there.  So today I was rolling out a form that one user type will submit, and another user type will approve.  They will do this by setting … Continue reading

CRM 2013 Make All Controls (Including Subgrids) Disabled onLoad

So I came across a client requirement that basically meant I was going to have to make all controls disabled in the onLoad event of the form with script.  No problem right?  Just get all the controls set disabled to true, and BAM!  Only problem is there are subgrids on the forms, and they need … Continue reading

CRM 2013 Subgrids Not Available in Control Collection onLoad

This isn’t categorized as a bug by Microsoft, but subgrid controls will not appear in the Xrm.Page.ui.controls.get() collection since the subgrids actually load AFTER the onLoad event fires.  I don’t like the design, but I can see where it would provide loading performance benefits.  Since there isn’t any real “supported” things you can do with … Continue reading

Organization Import Failed, Delete Statement conflicted with the Reference constraint “FK_BusinessUnitExtensionBase_BusinessUnitBase”.

So I was having a client import a database from production back to test to do some testing with live data and the second time they tried to import a copy of prod into the test environment, we started seeing this error. Going through the log I found the fairly non-helpful (as usual with CRM … Continue reading

Plug-in assembly does not contain the required types or assembly content cannot be updated. – Fixed!

I’ve had to troubleshoot and resolve this error message several times while developing plugins.  I go to update the plugin after changing some code and rebuilding, and <poof> all of a sudden nothing works.  The first time this happened it took me literally hours to resolve and much swearing occurred since I couldn’t find anything … Continue reading

Javascript to Test if a Value is Unique Across All Entity Instances

One thing I have run into numerous times is a client requirement to be able to enter a value, usuall some kind of ID number, and have it be a unique value. Obviously CRM’s autonumbering system doesn’t work here, and you can’t just use Math.random() either. Niether of the two solutions above are really flexible … Continue reading

Hey I have a blog! Friggin’ sweet.

My name is Travis Boyle, I am a Microsoft Dynamics XRM/CRM consultant based in the frozen north of Anchorage, Alaska but have led implementations nationwide. I decided to start posting some of the more interested things I have figured out with XRM over the years, so I’ll be posting whenever I come up with a … Continue reading