Reputation: 21
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.
Upvotes: 2
Views: 3243
Reputation: 22836
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
Upvotes: 2