web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Getting error on Xrm.Internal.DialogOptions.

(0) ShareShare
ReportReport
Posted on by

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? 

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Are you onprem or online?

  • Community Member Profile Picture
    on at

    This is Online

    Thanks!

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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
    on at

    Xrm.Internal.DialogOptions. error here

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 65 Super User 2026 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 37 Most Valuable Professional

#3
Travis South Profile Picture

Travis South 24

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans