Home › Dynamics 365 Customer Engagement (CRM) › Dynamics 365 Get Id of Current Record with JavaScript
Dynamics 365 Customer Engagement (CRM) · Jul 25, 2016

Dynamics 365 Get Id of Current Record with JavaScript

To get the Id of the current record:

var id = Xrm.Page.data.entity.getId();

To get the entity name:

var entityName = Xrm.Page.data.entity.getEntityName();

For more information see the Microsoft website: https://msdn.microsoft.com/en-us/library/gg334720.aspx

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Carl de Souza
KEEP LEARNING. KEEP BUILDING.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.