CRM 2015 window.top.opener.parant.Xrm.Page.getAttribute RRS feed

  • Question

  • Hi Guys,

    I got a question that causes me a lot of headaches.
    We are busy with a (internal) migration from crm 2011 to crm 2015(both on-premis)

    In CRM 2011 I used Javascript to get some value's from a top window. I used the window.top.opener.parant.Xrm.Page.getAttribute function for this.

    I know that in CRM 2015 this function does not longer excist. We tried to find an working alternative but we can't find it.
    Does anyone know a good alternative for this function?

    This was the code we used in CRM 2011:

     if (window.top.opener.parent.document.crmForm) {
      var pp = window.top.opener.parent.Xrm.Page.getAttribute("lannet_domainadministratorpassword").getValue();
      var dau = window.top.opener.parent.Xrm.Page.getAttribute("lannet_domainadministratorusername").getValue();
      if (pp != null) {


    Gerrit Smit

    Friday, October 30, 2015 10:26 AM