Microsoft introduced an awesome feature for developers with V9.0 called Xrm.WebApi. With this feature it is very easy to perform CRUD operations using javascript code. Earlier to v9.0, to perform CRUD operation in Dynamics CRM we need to create our own library or used other third party libraries or used XmlHttpRequest and ajax request. Example code to perform CRUD operations using Xrm.WebApi feature
- Create

2. Update

3. Delete

4. Retrieve

Hello Sir,
I am new to MS CRM. I was looking for the JavaScript code for CRUD Operations in CRM and found this blog. But, I am not able to understand, exactly where do we have to write this code?
Hi Piyusha,
You can use this code in Form events like onchange, onsave and onload.