* You are viewing the archive for the ‘REST’ Category

More REST queries with CRM 2011

Prompted by a question on a previous post, I’ve posted some additional examples on the CRM 2011 REST interface. In particular, this post covers the ability to query relationships and complex types.  All the examples below and more are explained in the CRM 2011 SDK.
From an <entity>Set query, there are a number of <link …>  elements that describe the URL’s to access information from the current entity relationships. For example:

To list a specific Account, request


If you then search in the response content for “contact_customer_accounts”, you will find an entry like

<link rel=”http://schemas.microsoft.com/ado/2007/08/dataservices/related/contact_customer_accounts” type=”application/atom+xml;type=feed” title=”contact_customer_accounts” href=”AccountSet(guid’b9436b0d-b832-e011-9e40-00155da9cd4f’)/contact_customer_accounts” />

The href … Continue Reading

REST based access to CRM 2011

Dynamics CRM 2011 supports a rich REST based endpoint allowing Javascript, Silverlight and other resources to access your CRM data.  The latest CRM 2011 SDK contains some (beta) details on the request and response structures needed to perform the CRUD operations.

These CRM 2011 web services also support the OData Protocol and $select, $filter, $orderby and $top can be applied to a query string request to return ATOM formatted data to your client application.   Continue Reading