Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Getting error on Xrm.Internal.DialogOptions.

Posted on by Microsoft Employee

I want to pop-up a dialog with the url I passed in. Here is the code:

function DisplayNativeDialog(url, callback) {
        var DialogOptions = new Xrm.Internal.DialogOptions();
        DialogOptions.width = 500;
        DialogOptions.height = 700;
        window.parent.Xrm.Internal.openDialog(
            window.parent.Mscrm.CrmUri.create(url).toString(),
            DialogOptions, null, null, callback);
    }

But I am getting error saying DialogOptions is not a constructor...

I think I need to update this JS for v9.0. Is there any replacement code I can use? 

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Getting error on Xrm.Internal.DialogOptions.

    Xrm.Internal.DialogOptions. error here

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Getting error on Xrm.Internal.DialogOptions.

    If you're online then... stop using Xrm.Internal stuff. It doesn't work in UCI and Classic client is going away. You can check following posts:

    butenko.pro/.../

    butenko.pro/.../

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Getting error on Xrm.Internal.DialogOptions.

    This is Online

    Thanks!

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Getting error on Xrm.Internal.DialogOptions.

    Hello,

    Are you onprem or online?

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!

Community AMA December 12th

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

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans