This blog is just a reference to very important article on dealing with a problem when two or more update or delete operations on the same piece of data happen at the same time. This situation could potentially result in data loss.
Explanation : Reduce potential data loss using optimistic concurrencyReduce potential data loss using optimistic concurrency.
Sample Code : Use optimistic concurrency with update and delete operations
Meet Jerry, he is wondering about dynamics crm services, In this blog I am helping him to understand when he should use which dynamics CRM web service.
Let’s first understand how many services dynamics crm offers post which will discuss which service to be used when:
- Web API
- Organization Service
- Organization Data Service
- Discovery Service
- Deployment Service
Organization service is basically a SOAP endpoint of dynamics crm and have been available since dynamics crm version 2011. This Service has to be used with .Net Framework and for Business logic that runs in plug-ins or workflow assemblies on the server expect to use the Organization service.( So nothing client side). To work with Organization you have to use microsoft dynamics crm SDK i,e provided libabries and assemblies to interact with dynamics crm.
Organization Data service
Discovery web services
As the name suggest, this service should be used when you have mutiple CRM instances of dynamics crm in single deployment. You would use this service in your plugins ( the server side code) to get the current instance obtain the context.
Deployment web service
This service is barely used by developer as UI options are available. Such as Deployment manager etc. Use this service if you have create , delete or edit a dynamics crm organization/instance. Again its all server side.
I hope this clears your doubt as to when you would use which service and with what programming language.