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 (online) Customer Engagement, 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.
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