IOrganizationService Interface


Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Provides programmatic access to the metadata and data for an organization.

Namespace:   Microsoft.Xrm.Sdk
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)


[ServiceContractAttribute(Name = "IOrganizationService", Namespace = "")]
public interface IOrganizationService
<ServiceContractAttribute(Name := "IOrganizationService", Namespace := "")>
Public Interface IOrganizationService


Name Description
System_CAPS_pubmethod Associate(String, Guid, Relationship, EntityReferenceCollection)

Creates a link between records.

System_CAPS_pubmethod Create(Entity)

Creates a record.

System_CAPS_pubmethod Delete(String, Guid)

Deletes a record.

System_CAPS_pubmethod Disassociate(String, Guid, Relationship, EntityReferenceCollection)

Deletes a link between records.

System_CAPS_pubmethod Execute(OrganizationRequest)

Executes a message in the form of a request, and returns a response.

System_CAPS_pubmethod Retrieve(String, Guid, ColumnSet)

Retrieves a record.

System_CAPS_pubmethod RetrieveMultiple(QueryBase)

Retrieves a collection of records.

System_CAPS_pubmethod Update(Entity)

Updates an existing record.

See Also

Microsoft.Xrm.Sdk Namespace
Use the Organization Service to read and write data or metadata
Use the IOrganization web service in a custom workflow activity
Sample: Create, retrieve, update, and delete records (early bound)
Troubleshooting and error handling

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright