Wednesday 21 October 2015

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

No comments:

Post a Comment