Querying the 365 metadata services
In the previous recipe, we used the Web API to query data available in our Dynamics 365 instance. As we previously mentioned, the Web API is almost on par with the SOAP endpoint. This includes for querying Dynamics 365 metadata; retrieving the metadata is key to building custom frontends driven by Dynamics 365 configuration.
In this recipe, we will walk through how to query metadata associated with the contact entity to view the entity details as well as attribute details.
Getting ready
On top of your Dynamics 365 access, you will require "read" access on the Entity
and Field
privileges located under the Customization
tab in security roles.
How to do it...
- Using Chrome, navigate to this URL:
[your organization URL]/api/data/v8.2/EntityDefinitions?$filter=SchemaName eq 'Contact'
- In a different tab, navigate to the following URL:
[your organization URL]/api/data/v8.2/EntityDefinitions(608861bc-50a4-4c5f-a02c-21fe1943e2cf)?$select=LogicalName&$expand=Attributes...