Skip to main content

Notifications

Announcements

No record found.

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

  • Go More Profile Picture
    Go More 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!

  • Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 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.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee 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

  • Go More Profile Picture
    Go More 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?

  • Go More Profile Picture
    Go More 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.

  • Suggested answer
    gdas Profile Picture
    gdas 50,089 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.

  • Shahbaaz Ansari Profile Picture
    Shahbaaz Ansari 6,205 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

  • Community Member Profile Picture
    Community Member Microsoft Employee 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)

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans