The IOrganizationService interface provides a set of methods used to perform the most common operations on system and custom entities and on the metadata for your organization.
This interface is implemented in a number of classes that you can use in your code when creating client applications.
|OrganizationServiceProxy||This is the original low-level class which is used by WCF and the SOAP endpoint|
|OrganizationWebProxyClient||This low-level class was created to enable OAuth authentication to the SOAP endpoint|
|CrmServiceClient||This is the class you should use when creating .NET client applications.|
When you write plug-ins, there is also an object returned from the IOrganizationServiceFactory.CreateOrganizationService(Nullable<Guid>) which implements the IOrganizationService interface but is not any of the types in the classes above.
|Associate||Link two entities using an entity relationship|
|Create||Create an entity record.|
|Delete||Delete an entity record|
|Disassociate||Remove the link between two entities using an entity relationship|
|Execute||Invoke an operation defined as a message by passing an instance of an OrganizationRequest or a class derived from it.|
|Retrieve||Retrieve an instance of an entity record.|
|RetrieveMultiple||Retrieve a collection of entity records that match the criteria set in a query.|
|Update||Change the attribute values of an entity record.|
The Organization service exposes only the
Execute method. The other methods in the IOrganizationService interface are simply wrappers around the
Execute method. These other methods are provided for convenience. You can perform all operations using only the
Execute method. More information: Use messages with the Organization service