Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Open HTML Web Resource in a new window

Posted on by 165

Hi Folks,

I have a custom HTML web resource, when I try to open it directly by pasting the url in browser then the Microsoft Dynamics CRM tile(shown below) is missing and also we receive an error: Cannot read property 'Page' of undefined, may be because the parent page is not of CRM and when I associate this url with a subarea component of sitemap then I am not able to pass query string parameter to web resource url.

How can we open a custom HTML Web Resource inside CRM (without missing the CRM tile as shown ) by directly pasting the URL of Web resource in browser with  query string parameters?

CRM-tile.jpg

Thanks in Advance!

*This post is locked for comments

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Open HTML Web Resource in a new window

    Hello,

    I have no guaranties that provided code will work but you can try:

    var url = "/Webresources/new_custompage.html";

    var o = {

    uri: url

    };

    if (window.top && window.top.document.getElementById("navBar") && window.top.document.getElementById("navBar").control.raiseNavigateRequest)

               window.top.document.getElementById("navBar").control.raiseNavigateRequest(o);

    I found this code inside Quick View solution - https://crm2013quickviewmenu.codeplex.com/SourceControl/latest#Src/DXTools.QuickView.Solution/DXTools.QuickView/CrmPackage/WebResources/Script (JScript)/QuickViewMenu.js

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