in

DotNetDeveloper

Bits o this Bits o that

MS Dynamics CRM

Blogging about Microsoft Dynamics CRM or MSCRM for short :) Add to Technorati Favorites

July 2008 - Posts

  • MSCRM - Finding an entity type code

    Microsoft have a naming convention for entity codes which you can find on the net

    However what if you want to find out a code for a custom entity?

    This is the simple solution I use.

    1. Goto Settings > Customization  and choose your entity
    2. Click Forms and Views and double click on the main form
    3. Click Form Properties > On Load Event and then click edit
    4. Paste the following code into the text area       alert("type code: " + crmForm.ObjectTypeCode);
    5. Tick the Event is enabled tickbox and click OK and on the next screen OK again.
    6. On the top menu select Preview > Create Form
    7. Now you get a nice popup box with your entity type code
    8. Make sure you quit without saving.

     

DotNetDeveloper.co.uk
Powered by Community Server (Non-Commercial Edition), by Telligent Systems