Customization Aware Web Resource – Part 3

Monday, April 4, 2016

In the previous post I demonstrated an implementation of the Customization Aware Web Resource approach using SOAP to retrieve metadata. In this post, I’ll demonstrate a similar implementation, this time using Web API.You can download an unmanaged solution containing the working sample code presented in this post. Note that this is a different solution version from the one made available in the previous post. Why should you use Web API instead of SOAP? Here are some of the reasons which importance rise as your implementation scales up: Reducing network traffic: compared to SOAP, REST requests are...

Customization Aware Web Resource – Part 2

Wednesday, March 23, 2016

In the previous post I described the Customization Aware Web Resource (CAWR) approach. This approach allows a dynamic reflection of certain customization changes in custom Microsoft Dynamics CRM client (Web Resource, Mobile app, Portal form etc.) as it query and apply metadata properties to relevant form controls. In this post, I’ll demonstrate an actual implementation of the CAWR approach using SOAP, for those of you who use Microsoft Dynamics CRM 2011 to 2015. In the next post, I’ll replace SOAP with Web API. You can download an unmanaged solution containing the working sample demonstrated in this post. This solution was exported from...

CRM Web API Preview – Generate Strongly Typed Objects from Metadata Document

Sunday, September 27, 2015

The CRM Web API Preview is nicely documented but I am missing an article explaining how to generate strongly typed objects from the metadata document to use with server side code. The following walkthrough describe just that: 1. Enable Web API Developer Preview under Settings –> Administration –> System Settings –> Previews and click ‘OK’ 2. Download the MetaData document: Navigate to the Metadata document URL (/api/data/$metadata) with your browser. You should get an XML file describing your Organization Metadata. To download, save (Ctrl+S in Chrome) the file to any directory you wish. 3. Install OData v4...