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

One comment

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

1 comments on “Get Entity Type Code by Name from Javascript – CRM 2015/2016”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.