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

any way to query entity name by entity type code?

$
0
0

Hello, I have a design that generically supports different types of entities. This design involves passing an ObjectTypeCode parameter as part of a request to a manager class.

So, for example, if a request with ObjectTypeCode = 112 is passed to the manager class then the manager class treats the request as an incident request because CRM defines an incident as having ObjectTypeCode 112.

I'm having problems using a QueryExpression for this. When I try to query "entity" or "entityview" through a QueryExpression, CRM returns the following error message:

The entity with a name = '[entityname]' was not found in the MetadataCache

Do you have any recommendations that I can follow to query an entity name by ObjectTypeCode?


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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