Jan 18, 2015

Reading the record Id from CRM 2013 front end

This is just small tip. How developers grab the GUID of a record from the front end of CRM.

What I do is using frames[0].Xrm.Page.data.entity.getId() script in developer’s tool console. (by pressing F12)

Now does it work in CRM 2013?

Yep, but need to be quite careful. Since we don’t get new window for every record in CRM 2013, if you try this as it is, it would give you a wrong ID. (yes, WRONG!) As an alternative, always make your record popped out as a new window before applying this script.

Below Icon will pop-out your record.