With the release of Dynamics CRM 2016, organization data services is depreciated, so going forward we need to make sure to write scripting code using Web API only. Web API implements OData V4 and can be used for any operation that we can do using organization service, so now we can use Web API to get both data and metadata. In this article, we are providing retrieve method sample code
To use Web API we need to use URL like the following:
[Organization URI] +”/api/data/v8.0/”
This code can be modified to work with any entity and to bring attributes based on requirement.
Stay tuned for more Web API Samples!