Skip to Content
Mastering Microsoft Dynamics CRM 2016
book

Mastering Microsoft Dynamics CRM 2016

by Deepesh Somani
November 2017
Intermediate to advanced
402 pages
7h 49m
English
Packt Publishing
Content preview from Mastering Microsoft Dynamics CRM 2016

Retrieving metadata using the Web API

Microsoft Dynamics 365 is a metadata-driven application. Sometimes, you need to query the metadata while working with requirements such as those mentioned in this scenario. For this purpose, you can easily query the metadata using the Web API. We will use the EntityDefinitions entity to retrieve the metadata of the Contact entity. The URL will be as follows:

clientURL + "api/data/v8.2/EntityDefinitions(LogicalName='contact')/Attributes"

We will create an HTML web resource and the following is the code to retrieve the metadata using the Web API. You will need to create a HTML control for selection in the web resource, as you cannot append items into the option set. So, we'll use the $(document).ready

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Dynamics CRM 2016 Customization - Second Edition

Microsoft Dynamics CRM 2016 Customization - Second Edition

Nicolae Tarla

Publisher Resources

ISBN: 9781786466617Supplemental Content