Hi All,
I am using Dynamics CRM server 2016.
I want to find out alternate keys for all entities.
Please see two code snippet as below.
------------------------------------------------------------------------------------------------------------------
Code snippet [1].
RetrieveAllEntitiesRequest request = new RetrieveAllEntitiesRequest()
{
EntityFilters = EntityFilters.Attributes,
RetrieveAsIfPublished = true
};
RetrieveAllEntitiesResponse response = (RetrieveAllEntitiesResponse)serviceProxy.Execute(request);
------------------------------------------------------------------------------------------------------------------
Code snippet [2].
RetrieveAllEntitiesRequestrequest = new RetrieveAllEntitiesRequest()
{
EntityFilters = EntityFilters.Entity ,
RetrieveAsIfPublished = true
};
RetrieveAllEntitiesResponse response = (RetrieveAllEntitiesResponse)serviceProxy.Execute(request);
------------------------------------------------------------------------------------------------------------------
I observed that,
- By using Code snippet [2], server respond in very less time but did not retrieve information for alternate keys.
- When i used Code snippet [1] , server took more time to respond and it successfully retrieved information for alternate keys.
I want to know that, is there any way to find alternate keys for all entities in less time?