Sunday 12 November 2017

window.parent.Xrm.Page.data.entity.getId() is not working in CRM 2016 and Dynamics 365

I have been seen a lot of CRM folks is struggling to find the syntax of getting Parent record details from Child record in CRM 2016 and above.

Syntax to get Parent record details from Child form in CRM above 2016 version :

window.top.opener.frames[0].Xrm.Page.data.entity.getEntityName();


window.top.opener.frames[0].Xrm.Page.data.entity.getId();


window.top.opener.frames[0].Xrm.Page.data.entity.getId();


window.top.opener.frames[0].Xrm.Page.getAttribute("attributename").getValue();


Cheers

3 comments:

  1. Hi,
    It works perfectly except in edge browser...any solution?

    ReplyDelete
  2. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. Ramen Leuven

    ReplyDelete
  3. You made such an interesting piece to read, giving every subject enlightenment for us to gain knowledge. Thanks for sharing the such information with us to read this... more info

    ReplyDelete

Blogger Widgets