Get Entity Type Code by Name from Javascript – CRM 2015/2016

Hi,

There is a very easy way to get Entity Type Code by Name like below

var entityTypeCode = Mscrm.EntityPropUtil.EntityTypeName2CodeMap[“lead”];

 

this will be really helpful when you try opening a CRM form or window. I have tested this in both CRM 2015 and 2016 which worked as charm.

Credits to : https://blog.hompus.nl/2015/05/28/entity-type-code-using-javascript-only/

Thank you,

Sreeni Pavalla

Advertisement

Published by Sreeni Pavalla

Working as a Assistant Technical Manager in Positive Edge Technologies. Having over 11 years of extensive hands-on experience in MS Dynamics CRM 4.0, 2011, 2013, 2015, 2016, Dynamics 365 with over 5 years of experience in CRM Online. You can visit my blog here https://sreenipavalla.me/

One thought on “Get Entity Type Code by Name from Javascript – CRM 2015/2016

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 )

Connecting to %s

%d bloggers like this: