Crea sito

CRM Javascript – Get current record ID

Javascript allows to customize the behaviour of an entity form. Sometimes you  need to know the id of the current record. In Microsodt Dynamics CRM 2011/2013/2015 you can get the current record id (Guid) using the following code:

 var recordID = Xrm.Page.data.entity.getId().replace(“{“, “”).replace(“}”, “”);

No related content found.

Comments are closed.