Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to link to another site through the SiteMap, like CRM Help Center

Posted on by Microsoft Employee

I want to add a button to the SiteMap that links to another URL and I would like the linking behavior to function like the CRM Help Center link provided by Microsoft:

1) The current tab remains the same and the navigation closes/collapses

2) The new tab contains the linked content

I've tried added a full URL to the sitemap, but this opens the new URL in an iframe within the CRM application.

I've also tried adding a web resource, as outline here, which links the nav button to a web resource that then uses window.open to open a new tab, but this leaves the originating tab in an undesirable state (an iframe remains on the original tab in the CRM application, and the screen looks very empty).

Any ideas?

Thank you.

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to link to another site through the SiteMap, like CRM Help Center

    Hi Jeff,

    This can be done using the web resource. Within the web resource, you need to use the below JavaScript. The script ensures that after opening the external page, the screen goes back to where you were before.

    ================================

    ---------------------

    <html lang="en" xmlns="www.w3.org/.../xhtml">

    <head>

      <meta charset="utf-8" />

      <title></title>

      <script type="text/javascript">

          function openExternalLink() {

              window.history.back();

              window.open("http://www.bing.com&quot;, "_blank");

          }

      </script>

    </head>

    <body onload="openExternalLink();">

      <h1>Test Web Resource</h1>

    </body>

    </html>

    ------------------------------

    ================================

    You can refer this thread for more details-

    community.dynamics.com/.../246210

    Hope this helps.

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