Поделиться через


Use Microsoft Dynamics 365 services in code

 

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

Microsoft Dynamics 365 provides two web services that can be used to identify your organization and to access Dynamics 365 data. This section describes how to use these services when you are developing applications or customizations for Dynamics 365.

IDiscoveryService web service

A single Microsoft Dynamics 365 installation can host multiple organizations on multiple servers. Therefore, it is important to specify which organization you want to access. The IDiscoveryService web service returns a list of organizations that the specified user belongs to and the URL endpoint address for each organization. More information: Discover the URL for your organization using the Organization Service and IDiscoveryService

IOrganizationService web service

The primary web service for accessing data and metadata in Dynamics 365 is the IOrganizationService web service. More information: Use the Organization Service to read and write data or metadata and IOrganizationService

Add the Microsoft Dynamics 365 assemblies to your project

Most of the time you’ll use the SDK assemblies in your development projects. Using the assemblies is the recommended developer scenario for Microsoft Dynamics 365 (online & on-premises). These assemblies are in the SDK\Bin folder, along with the corresponding Visual StudioIntelliSenseXML files. More information: Assemblies included in the Microsoft Dynamics 365 SDK

Add the service reference to your project

You may have a development scenario where you want to include the service reference in your project rather than using the assemblies. To find the correct service references for your organization, see Download the endpoints using the Microsoft Dynamics 365 Developer resources page.

See Also

IDiscoveryService
IOrganizationService
Discover the URL for your organization using the Organization Service
Use the Organization Service to read and write data or metadata
Authenticate users in Microsoft Dynamics 365
Use the early bound entity classes in code
Extend Microsoft Dynamics 365 on the server
Assemblies included in the Microsoft Dynamics 365 SDK
Microsoft Dynamics CRM Developer Center

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright