How to get the entity schema name list registered in your Dynamics CRM Organization using C#.
Use the following code for fetching entity list names in your console application: public static EntityMetadata[] GetEntities(IOrganizationService organizationService) { Dictionary attributesData = new Dictionary (); RetrieveAllEntitiesRequest metaDataRequest = new RetrieveAllEntitiesRequest(); RetrieveAllEntitiesResponse metaDataResponse = new RetrieveAllEntitiesResponse(); metaDataRequest.EntityFilters = EntityFilters.Entity; // Execute the request. metaDataResponse = (RetrieveAllEntitiesResponse)organizationService.Execute(metaDataRequest); var entities = metaDataResponse.EntityMetadata; return entities; } public static void PrintEntitySchemaNames() { OrganizationServiceProxy _orgservice = CreateCrmServiceObjectOnline(); Console.WriteLine("==================================="); #regio