What I want to do is:
Steps 2 and 3 are done but I don't know how to accomplish step 1. I've spent some time noodling around in the code and on Google but remain stumped.
We're using.Net so what I need is to read ALL the Entity Metadata (type: Microsoft.Xrm.Sdk.Metadata.EntityMetadata).
If anyone knows how to do this or can point me in the direction of the API (I haven't been able to find one) then please let me know.
PS This case is for on-premise crm.
If I get it right you need to use RetrieveAllEntitiesRequest request. Here are more details: https://stackoverflow.com/a/29694213/2575544
For the benefit of anyone that comes across this post here's
public static EntityMetadata[] GetMetadata(IOrganizationService crmService)
{
var request = new RetrieveAllEntitiesRequest
{
EntityFilters = EntityFilters.All
};
var response = (RetrieveAllEntitiesResponse) crmService.Execute(request);
return response.EntityMetadata;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.