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.

Advertisements

About Bernado

Based in Australia, I am a freelance SharePoint and Dynamics CRM developer. I love developing innovative solutions that address business and everyday problems. Feel free to contact me if you think I can help you with your SharePoint or CRM implementation.
This entry was posted in CRM. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s