Use the Organization Service to read and write data or metadata

Applies to Dynamics 365 for Customer Engagement apps version 9.x

In Dynamics 365 for Customer Engagement apps, the primary web service that accesses data and metadata for your organization is IOrganizationService. This web service contains the methods that you use to write code that uses all the data and metadata in Dynamics 365 for Customer Engagement apps.

To use the IOrganizationService web service, add a reference to the Microsoft.Xrm.Sdk.dll assembly to your Visual Studio project. To access the non-core xRM messages, add a reference to the Microsoft.Crm.Sdk.Proxy.dll assembly to your project also. Alternatively, add the service reference to your project. More information: Developer resources page

In This Section

IOrganizationService Methods

Use Messages

Use Execute Multiple to Improve Performance

Microsoft.Xrm.Sdk Messages

Microsoft.Crm.Sdk Data Messages

Perform specialized operations using Update

IOrganizationService Entities

Sample: Execute Multiple Requests

Sample: Execute multiple requests in transaction

Use the Early Bound Entity Classes in Code

Use the Late Bound Entity Class in Code

Retrieve Data with Queries

Developing Custom Code

Connecting to the Dynamics 365 for Customer Engagement apps Services - Authentication

Discover the URL for your organization using the Organization Service

Quick Start: A Simple Program