web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Hosk's Dynamic CRM Blog / CRM 2013 – quick way to get...

CRM 2013 – quick way to get the guid on a form

Hosk Profile Picture Hosk

I had previously written an blog about this

http://crmbusiness.wordpress.com/2011/02/21/crm-2011-quick-way-to-find-a-guid-using-a-crm-form/

and the method involved getting the url and copying out the guid from it, which is a bit slow and painful, particuarly on non default entities because there are two guids in the url and I keep forgetting which one I need.

Also someone informed the url is no longer displayed in CRM 2013!

Then a comment from Michael Blackburn gave me a much simplier solution, which I thought I should share because it’s certainly made my life a lot easier.

Press F12 to open the developer console, Click the script tab, and in the bottom right, next to the >> type in:
frames[0].Xrm.Page.data.entity.getId()

If you need to call any Xrm function from the context of the javascript console, you can do so by prefacing it with frames[0].

 

capture guid


Filed under: CRM 2011, CRM 2013

This was originally posted here.

Comments

*This post is locked for comments