Based on the idea of the CrmServiceToolkit (Daniel Cai) and provides basic CRUD operations for the Dynamcis CRM 2011 REST /ODATA web-services endpoit.
###Breaking Changes with version 3.x The API of the module has changed:
- Use
GetById
instead ofRetrieve
- Use
GetByQuery
instead ofByQuery
- Use
GetByQueryUrl
instead ofByQueryUrl
The option parameter opt_asyn
is not supported by version 3.x. All method will perform asynchronous operation. In case you need a certain operation to be performed in synchronous mode, use the method with the Sync
postfix:
getByIdSync
getByQuerySync
getByQueryUrlSync
createSync
deleteSync
updateSync
Furthermore does are factory method moved to an new namespace
CrmRestKit.factories.entityReference
CrmRestKit.factories.optionSetValue
All unit-tests are passed /green for CRM 2013 Online (tested with the CrmRestKit-2.6.1.js).
The next major release (3.0) of the CrmRestKit.js requires some fundamental changes:
- Eliminate the jQuery dependency
- when.js (https://github.com/cujojs/when) instead of jQuery for the promise-pattern
- Jasmine (http://jasmine.github.io/) as unit-testing framework instead of QUnit
- “Real” unit-tests with mocks/stubs
- Prototypes (CrmRestKit.Prototype.Create)
- Performance
- Namespace changes (e.g. CrmRestKit.util.ParseODataDate)