Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

HTML Webresource in dialog

Posted on by Microsoft Employee

Hi,

Is there any supported way to open an html Webresource as an dialog from a button in Dynamics 365?

Thanks

*This post is locked for comments

  • Alan Mervitz Profile Picture
    Alan Mervitz 295 on at
    RE: HTML Webresource in dialog

    Alert.js as currently implemented is using unsupported techniques, such as modifying the CRM form's HTML. This results in failing compatibility tests run by Microsoft prior to allowing publishing to AppSource.

  • BadrinathB Profile Picture
    BadrinathB 970 on at
    RE: HTML Webresource in dialog

    Hi Vanita,

    I have used Alert.js and this is a good option. You are allowed to use custom JavaScript as long as you are not using any unsupported commands/script or violating rules defined by Microsoft.

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: HTML Webresource in dialog

    Hi Luca,

     I see what you are saying, but in that sense any javascript customization would be unsupported.. "Unsupported" for CRM means something very specific: utilizing some unpublished methods in the XRM library or using direct DOM access would be two examples- those are unsupported because Microsoft does not guarantee their availability in the newer versions of CRM. As far as I know, alert.js is not relying on such features, but I may be wrong of course.

     Basically, all I'm saying is.. alert.js seems to be a good choice, and it's not less supported than any other javascript customization (which is a "supported" way to customize CRM)

  • LucaV Profile Picture
    LucaV 2 on at
    RE: HTML Webresource in dialog

    Hi Alex, I would say Alert.js is unsupported because, if you encounter problems, you cannot ask Microsoft to support the issue, since it's not an OOB feature of the CRM. This does not mean it's not perfectly compatible though.

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: HTML Webresource in dialog

    There is nothing unsupported in using javascript to open a web resource - not sure why alert.js etc would be called unsupported as opposed to Xrm.. The only caveat is that alert.js is not provided by Microsoft. But it's not relying on the unsupported methods, so it's absolutely "legal" (whether it works on all platforms/browsers/etc is a different question again)

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: HTML Webresource in dialog

    Refer this blog:

    mscrm-njl.blogspot.sg/.../open-html-webresource-as-window-or.html

  • Jasdeep Singh Profile Picture
    Jasdeep Singh 60 on at
    RE: HTML Webresource in dialog

    Hi Vanita,

    I have the supported way for open html dialog box but I will charge for it.

    If you interested ,please contact via mail.

    Thanks and Regards

    Jasdeep Singh

    email- Mr.jasdeepsingh@gmail.com

  • Gopalan Bhuvanesh Profile Picture
    Gopalan Bhuvanesh 11,397 on at
    RE: HTML Webresource in dialog

    Hi

    I do not think there is any other (than Xrm.Utility.openWebResource) supported way.

  • LucaV Profile Picture
    LucaV 2 on at
    RE: HTML Webresource in dialog

    Hi vanita, I've used the fantastic Alertjs library before for this.

    See https://alertjs.codeplex.com/documentation#Alert.showWebResource

    I don't think there is any supported way to show a webresource in a dialog, but I prefer to use an external library rather than hidden/unsupported methods within the Xrm namespace.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: HTML Webresource in dialog

    Yes,we tried.It open web resource in a window but we want to open it as an dialog so user doesn't have control on parent window.

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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