Michael Philip's Blog

Writing about MS Tech with strong focus on Azure & CRM

MS CRM 2011 – Get Current Entity Object Type Code Using Java Script

Leave a comment

BriefSuppose you would like to get the object type code of the entity  your are opening its form.


var currEntityObjTypeCode= Xrm.Page.context.getQueryStringParameters().etc;

Key Points:

  •   Type codes below 10,000 are reserved for OOB entities.
  •   Custom entities have a value greater than or equal to 10,000.

     Custom entity object type codes may change during import and are not guaranteed to be the same between systems.


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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s