A colleague of mine recently turned me onto some very useful tools that are simple and easy use. Often times as a CRM developer, we find ourselves needing either the entity type code or the GUID of the record we’re on. We can easily obtain this information by creating a bookmark that displays either the GUID or the entity type code, directly from the form we’re on. As an added benefit, we can also set the values to our clipboard so they can be pasted as needed.
To create these bookmarks, just browse to any CRM page and add it to your favorites. Then, you can edit the bookmark and set the URL to the javascript you would like executed.
Here's the javascript to do so:
Entity Type Code:
javascript:if (crmForm.ObjectTypeCode){clipboardData.setData("Text", crmForm.ObjectTypeCode.toString()); alert(crmForm.ObjectTypeCode);}
Entity ID:
javascript:if (crmForm.ObjectId){clipboardData.setData("Text", crmForm.ObjectId.toString()); alert(crmForm.ObjectId);} else { alert('…