2

I want a fetchxml that will return a list of Entities, hopefully with Display name and schema name.

Similarly I would like a fetchxml that will return the attributes for an Entity. Also with Display name and Schema name.

I assume there is a way because tools in the XRMToolBox load dropdowns with those value.

Mitchell M
  • 21
  • 2
  • 1
    If you want to try some cool tech to be able to use FetchXML to query metadata, you really should try this out! :) https://dreamingincrm.com/2018/06/14/using-virtual-entities-to-query-metadata/ – Jonas Rapp Nov 03 '18 at 10:48

1 Answers1

2

Fetchxml is DML query to retrieve data from backend & cannot be used for metadata retrieval. We have to use Organization service or web api to pull Metadata like Entity & attribute definitions.

SO thread 1 & thread 2 will help you to achieve it.

Other useful links:

Query metadata using the Web API

Retrieve data with queries using SDK assemblies

Use the Organization Service to read and write data or metadata