Get guid entity id in crm 2015 url

Posted on Posted in JavaScript, MS CRM 2013, MS CRM 2015, MS Dynamics

It was easy to get Guid Id of a record on form as it was being displayed in URL however in CRM 2013/2015 it does not.

Sometimes we need an id of record from URL so below is a simple solution to get the id

Go to your IE

Add a favourite (any url does not matter)

Then go to properties of newly added favourite and web document tab

replace URL with following script

javascript:(function() {window.prompt(‘Record ID:’,frames[0]})();


Apply and exit

Now browse to your record, press F12 and make sure _top: main.asxp selected in Console > Target

Now click on your newly added link and you will see a pop up with Record ID

How this helps



Leave a Reply