Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

The alternative to Xrm.Utility.openDialog exists?

Posted on by 165

Hello!

After we send our package to Microsoft to Approve, they send me a letter:

"Dear Team ,

 XRM.Utility.opendialog () is an internal method ,External Usage of opendialog is not supported . Please come up with an alternate solution for this ."

Code:

Xrm.Utility.openDialog(webresourceurl, parameters, null, null, null); 

Is there is a alternative ?

Thank you!

Categories:
  • Suggested answer
    Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: The alternative to Xrm.Utility.openDialog exists?

    you can use either something from within the Xrm.Navigation class (as it's supported) or Paul Nieuwelaar's Alert.js...

    Given that you are opening a web resource Xrm.Navigation.openWebResource may well fit your needs.

  • LeonardBertone Profile Picture
    LeonardBertone 165 on at
    RE: The alternative to Xrm.Utility.openDialog exists?

    thank you for responce!

    I must only change " Xrm.Utility.openDialog " to something from "PaulNieuwelaar's Alert.js " ?

  • LeonardBertone Profile Picture
    LeonardBertone 165 on at
    RE: The alternative to Xrm.Utility.openDialog exists?

    Ok, is there is any solution of this ?

    Thank you

  • Suggested answer
    Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: The alternative to Xrm.Utility.openDialog exists?

    Oops my mistake I'm using the Xrm.Navigation routines as documented in my link and as supported from 9.0 onwards.

    Those routines were also throwing error messages in the code validation tools until very recently and I thought it was the same thing.

    @Leonard you will need to rewrite your code to use the appropriate Xrm.Navigation routines or to use the PaulNieuwelaar's Alert.js see github.com/.../alertjs

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: The alternative to Xrm.Utility.openDialog exists?

    Ben,

    Are you sure your code uses Xrm.Utility.openDialog that is wrapper on top of Xrm.Internal.openDialog? If yes I'm afraid Leonard and MS are correct - this is internal functionality that should not be used within ISV solutions published op AppSource.

  • Suggested answer
    Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: The alternative to Xrm.Utility.openDialog exists?

    Ask them to run the test again referencing docs.microsoft.com/.../openconfirmdialog  . That was a bug in the validation code but it was fixed about 3 weeks ago as the first of our ISV security solution uses that function and it's approved and available on AppSource at appsource.microsoft.com/.../houdinisecurity.houdini-record-security.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans