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)

Dynamics 365 v.9: Unified Interface: openLegacyWebDialog function

(1) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Denys Demchenko Profile Picture
    on at
    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
    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. 

  • Denys Demchenko Profile Picture
    on at
    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

Responsible AI policies

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

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans