Project DescriptionCrmRestKit based on the idea of the CrmServiceToolkit (Daniel Cai) and provides basic CRUD operations for the Dynamcis CRM 2011 REST web services.
R8 (Q2-2012) support
- The unit-tests for version 2.4 are executed & passed in Chrome 18, Firefox 12 and IE 9
- Please take into account that I currently using R7 for testing!!! I don't have access to an R8 system.
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.
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: