Project Description

CrmRestKit based on the idea of the CrmServiceToolkit (Daniel Cai) and provides basic CRUD operations for the Dynamcis CRM 2011 REST web-services.

Polaris & Rollup 12 support

The unit-tests since version 2.5 are executed & passed in Chrome 25, Firefox 19 and IE 8/9/10

API (asyn /syn):

  • Retrieve
  • ByQuery
  • ByQueryUrl
  • ByExpandQuery
  • Create
  • Update
  • Delete
  • EntityReferenceFactory
  • Associate
  • Disassociate

Documentation

* The .zip file contains the QUnit tests that should be used as reference /documentation.
* Articles & Blogs

Why jQuery?

Some of you might say: "Why should I use a library that depends on jQuery". jQuery provides us with some nice features that are used by this library:
  • Promise /A: The deferred-capacities of jQuery are very powerful and allows us to write really better code (without a callback-hell).
  • Cross-Browser Ajax: Clean ajax API: Remember: R8 (cross-browser-support)

Promise /A:

By utilizing the promise-capacities of jQuery we can now "combine" our requests very easily. Just assume that you execute two requests and you need to defer the execution of other logic until both operations are completed. (The two operation should be executed in parallel!) :

   $.when(fn1(), fn2()).then(function(result_fn1, result_fn2){  
      /*...*/ 
   }); 

The best part: Even in case one of the function might change to sync. execution, the code does not change!

See: http://msdn.microsoft.com/de-de/scriptjunkie/gg723713.aspx

Dependencies:

  • jQuery 1.7.1 (or higher)
  • JSON2

Last edited Apr 19 at 7:05 AM by thuld, version 27