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
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
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.
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 Boxes: https://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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156