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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer Service forum

The alternative to Xrm.Utility.openDialog exists?

(0) ShareShare
ReportReport
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:
I have the same question (0)
  • Suggested answer
    Ben Thompson Profile Picture
    6,350 on at

    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.

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

    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
    6,350 on at

    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

  • LeonardBertone Profile Picture
    165 on at

    Ok, is there is any solution of this ?

    Thank you

  • LeonardBertone Profile Picture
    165 on at

    thank you for responce!

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

  • Suggested answer
    Ben Thompson Profile Picture
    6,350 on at

    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.

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 > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans