Saturday, January 29, 2011

JavaScript - Get Object Type Code for any Entity

I needed to find the specific Entity code based on its location with respect to the CRM tenant. The code below should be placed in the onLoad event of an entity. When the form is opened, the Entity code will display in an alert pop-up:

//put in onLoad event of entity
     alert('Object Type Code: ' + crmForm.ObjectTypeCode);

No comments:

Post a Comment