Get the current entity name and id using javascript in CRM 2011/2013/2015

Hi,

This might be known for every one who has experience of Level 100 on MS CRM but this might be helpful when we need the correct syntax quickly.

Use the following lines to get the entity name and id of record in CRM 2011/2013/2015

Xrm.Page.data.entity.getEntityName()

Xrm.Page.data.entity.getId()
 

Hope this helps.


Happy CRM’ing
Gopinath

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