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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

window.parent.Xrm.Utility.openDialog doesn't work in IE

(0) ShareShare
ReportReport
Posted on by 20

Hi all

I'm using "window.parent.Xrm.Utility.openDialog" to open a web resource in Dynamics CRM 365, and return some value thru Callback function. It's working perfectly fine with Chrome but it doesn't open the web resource on IE. To be exact on IE occasionally it gets open, and shows the webresource, but even in that case it's not successful to return the value when using "Mscrm.Utilities.setReturnValue", It throws an Undefined exception.  (I'm using IE 11).

Appreciate any helps,

GM

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: window.parent.Xrm.Utility.openDialog doesn't work in IE

    Hello,

    try with window.parent.parent

    or

    Xrm.Utility.openWebResource(webResourceName,webResourceData,width, height)

  • Shahbaaz Ansari Profile Picture
    6,211 on at
    RE: window.parent.Xrm.Utility.openDialog doesn't work in IE

    Hi,

    Please check below link,

    stackoverflow.com/.../xrm-utility-openwebresource-opens-new-tab

    Thanks,

    Shahbaaz

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: window.parent.Xrm.Utility.openDialog doesn't work in IE

    Hi Moore ,

    Unfortunately window.parent.Xrm.Utility.openDialog is not supported in Microsoft Dynamics CRM or internet explorer , to over come this MS recommend to use Xrm.Utility.openWebResource , please find below reference -

    msdn.microsoft.com/.../jj602956.aspx

    You can also check Scott Durow suggestion here - how ever this is also not supported way.

    community.dynamics.com/.../185488

    Hope this helps.

  • Go More Profile Picture
    20 on at
    RE: window.parent.Xrm.Utility.openDialog doesn't work in IE

    Hi Jagmohan

    Thanks for your response. The reason I chose  'Xrm.Utility.openDialog' over 'Xrm.Utility.openWebResource' is I need the CallBack function.  Can I have access to CallBack function using  openWebResource?

    window.parent.parent doesn't work, sometimes it opens the webresource sometimes it doesn't, and when it opens the webresource the callbackfunction doesn't work and throw an undefined error box.

  • Go More Profile Picture
    20 on at
    RE: window.parent.Xrm.Utility.openDialog doesn't work in IE

    Hi Goutam

    Thanks for your response. The reason I chose  'Xrm.Utility.openDialog' over 'Xrm.Utility.openWebResource' is I need the CallBack function.  Can I have access to CallBack function using  openWebResource?

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: window.parent.Xrm.Utility.openDialog doesn't work in IE

    yes you can leave it blank if you don't need this

    for ex.  

    function CallBack(){}

    and call this method in Xrm.Utility.openWebResource

  • Temmy Wahyu Raharjo Profile Picture
    2,916 on at
    RE: window.parent.Xrm.Utility.openDialog doesn't work in IE

    For the unsupported method, you must check first. Why you need to window.parent? Try Xrm directly, else if you used iframe, then you need parent.Xrm.

  • Go More Profile Picture
    20 on at
    RE: window.parent.Xrm.Utility.openDialog doesn't work in IE

    I have tried "'Xrm.Utility.openWebResource", it's still inconsistent in IE. I mean the web resource gets open only sometimes, not always!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans