Bhoopathi

"Be Somebody Nobody Thought You could Be"

Monday, August 1

Getting Entity Type Code from MS Dynamics CRM UI for an Entity

Getting entity type code from CRM UI for an entity

Entity type code for custom entities may be different across environments. Sometime you may need to work out the entity name from an entity type code, for example when CRM throws an error message at you.
Here is a quick way to confirm the entity type code for an entity using the CRM UI:
  1. Open a record of the entity type you’d like to check
  2. Go to the Customize tab and click on Form to launch the form editor
    1 Customise Menu_2
  3. Notice the URL of the form editor. This URL has an etc query string parameter. This is the entity type code for the entity.
    2 Url
The above steps are for CRM 2011 but should also work for later versions of CRM.
This method works best when you have some gut feels of which entity a given code may be for, and of course if you can access a record of the suspecting entity. There are other methods of retrieving entity type codes, such as querying the CRM database, or invoking the RetrieveAllEntitiesRequest against the web service. These other methods however may not be available to you, particularly in environments that are higher than DEV.