Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

EntityFilters.Attributes took more time than EntityFilters.Entity to fetch entity metadata.

$
0
0

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?


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>