CRM 2011, OData and datajs

UPDATE: FALSE ALARM about batch updates.  Turns out the CRM 2011 OData service doesn’t support batch updates.  I just assumed it did because I’ve written .NET/Silverlight clients against the CRM 2011 OData service using a derived DataServiceContext.  DataServiceContext based contexts using the “unit of work” pattern through SaveChanges()/BeginSaveChangesc() and they’ve always “just worked.”  I just…

0

Geocoding and displaying a map for an address in CRM 2011

There are a few blog posts out there that cover this topic, but the ones I’ve found don’t take you through it step by step.  I will, however, make assumptions like you know how to create an entity, add web resources to a form, etc.  Here goes… The overall solution is going to consist of:…

1

Minify Selection in Visual Studio 2010

You learn something new every day!  One of the things I’ve been talking to CRM folks about a bit lately is Minifying your CRM 2011 JavaScript and CSS.  Well, I just discovered that when you install the Microsoft Ajax Minifier, you get a handy little context menu option to minify. It shows up in both…

0

Using the CRM 2011 OData service from a Metro style app

UPDATE: Fixed a few bugs in the downloadable sample including one where it wouldn’t work in Office 365 based CRM Online subscriptions.  Edited some text in the post for clarity. UPDATE2: Added some text about how to get this working for Windows Authentication. UPDATE3: I’ve just blogged about an update to the sample here.  The…

8

Cross domain calls from JavaScript

It’s exciting times for web developers.  Many of the hoops we used to have to jump through are being eliminated as more browsers support more of the HTML5 spec and more people are using modern browsers.  One of the things that has me excited is Cross-origin resource sharing (CORS).  In the context of Dynamics CRM,…

1

Using RequireJS with CRM 2011 forms

GOAL: Simplify referencing JavaScript libraries from CRM forms for code-centric developer types like me. I have always been a fan of “code beside” JavaScript files that contain all my main code for a corresponding HTML page.  For example, if I have a page called hello.htm, then I will have a file called hello.htm.js that is…

5

Cascading option set dropdowns with CRM 2011

I get asked this once or twice a month.    “Does CRM 2011 allow me to configure cascading dropdowns out of the box?” There is no “out of the box” way to do this using point and click customization through the CRM UI.  I find that when people hear “not out of the box” they immediately…

1

New Features for the CRM 2011 JavaScript Model Generator

I blogged about this handy community tool before.  See here.  I just noticed that there’s an update version, as of 3-21-2012, with some new features.  From the Release Notes: Now supports mult-forms and explicitly setting which attributes, tabs, sections, and left navs to include in the model. Check the documentation for more details. I requested…

0

SAMPLE: Editable grid for CRM 2011 using jqGrid

A while back, I wrote a post called Building an editable grid for CRM 2011.   The goal of the post was to give you the necessary knowledge to know how to write the code to build an editable grid.  Since then, someone introduced me to jqGrid.  This is quite a powerful JavaScript grid control.  Have…

6

CRM 2011 JavaScript Model Generator

http://dkdt.me/ycgdJJ  This my newest favorite tool for Dynamics CRM development!!! It’s a tool that creates a ViewModel-esque class for a given form.  As the text on the home page says: “The JS Model Generator will go and grab the Form XML for specified entities and create objects for each attribute, tab, section, and left navigation…

1