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...