Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Dynamics 365 v.9: Unified Interface: openLegacyWebDialog function

Posted on by Microsoft Employee

I know that web dialogs functionality is deprecated in the new unified interface. But we still need it. I have found out that there is a "Xrm.Internal.openLegacyWebDialog" function that allows to open html pages in native CRM window like "Xrm.Internal.openDialog" function in classic interface. But "closeWindow" function doesn't work and also I didn't find a way how to change zindex of the dialog window. Early I was able to do it by passing zindex parameter into "Mscrm.InlineDialogUtility.createInlineDialog" function.

Thanks in advance for any help with it!

*This post is locked for comments

  • RE: Dynamics 365 v.9: Unified Interface: openLegacyWebDialog function

    Yes, but be carefull with openWebResource. In UCI it opens WebResource with UCI navigation interface with your HTML page inside, this can be not suitable for some cases

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 v.9: Unified Interface: openLegacyWebDialog function

    Hello Denys,

    Thank you for your answer.

    Yes, I saw this article earlier. But we need html pages and we use knockout.js in these pages.

    I agree, window.open or openWebResouce function can be a solution in this case. 

  • RE: Dynamics 365 v.9: Unified Interface: openLegacyWebDialog function

    Hello, Dmitry

    Actually use of Xrm.Internal namespace functions is unsupported so Xrm.Internal.openLegacyWebDialog is unsupported function too. But, I understand your problem because I`m facing the same issue.

    I found the function Xrm.Navigation.openDialog (which is undocumented, so unsupported) which can open the new Dialog Boxes like modal windows. Here you can find the information about Dialog Boxeshttps://bguidinger.com/blog/custom-dialog-boxes-part-1 and https://bguidinger.com/blog/custom-dialog-boxes-part-2. You can try to investigate more about this. The main feature of this dialogs that they are fully native with CRM design.

    My investigations let me to use the common window.open in UCI. This is not a modal dialogs, but they support closeWindow functions.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans