Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : gO9YMVXATClq/qSrVebhex
Microsoft Dynamics CRM (Archived)

Open a new window with Sitemap with Dynamics 365

Like (0) ShareShare
ReportReport
Posted on 9 Aug 2017 17:24:28 by 410

Hi I am trying to open an external website in a window with a button in the sitemap/navigator area in CRM.

If I put one of the subarea/button just as a URL -- it works if i right click and choose "open in a new window". If I just left click, it gets stuck loading forever within crm. Is there a way to default this into a "open in new window" within the URL type of button for sitemap?

If not:

I also tried looking into creating a html web resource to load with this post, https://community.dynamics.com/crm/f/117/t/196411

I used the code:

  1. <html><head>
  2.  
  3. <title></title>
  4.  
  5. <meta charset="utf-8"></head>
  6.  
  7. <body>
  8. <script type="text/javascript">
  9. function GoGoogle()
  10. {
  11. window.open("http://www.google.com","_blank");
  12. }
  13. window.onload=GoGoogle();
  14. </script>
  15. </body>


In my web resource, and had the sitemap subarea open that web resource using the new dyanmics 365 editor.

When you click on the respective button in the navigator, it just shows the html code I listed above and doesn't open any page.

Any guidance? I seem to be missing something with the web resource and can't figure it out.

Thanks for the help!

*This post is locked for comments

  • Anand Kumar M Profile Picture
    122 on 30 Jul 2019 at 15:04:51
    RE: Open a new window with Sitemap with Dynamics 365

    Were you able to change the Sitemap selection also after opening the page in new window. on CRM main page?

    I still see the SubArea which is selected in the sitemap and the page it is showing is a previous page. 

  • Verified answer
    Goloknath Profile Picture
    on 09 Aug 2017 at 19:27:35
    RE: Open a new window with Sitemap with Dynamics 365

    I ran into this problem recently trying to load a SharePoint site...You've found the solution.  It's not possible to navigate within the CRM window itself, only to load the site up into another tab or page from the HTML web resource.

    Sorry we don't have a better answer... :(

  • Verified answer
    HodgesW Profile Picture
    410 on 09 Aug 2017 at 18:46:26
    RE: Open a new window with Sitemap with Dynamics 365

    So I was able to figure out the HTML resource method. Basically i needed to load it into the webresource as an HTML file instead of using the text editor.

    The main issue of this method is that it forces you to navigate to the HTML page and then opens up the external URL in a new tab -- leaving your CRM page at your webresource. My current workaround was to include window.history.back() in my JS code as well -- still not really ideal.

    What would be nice is if it just opened a new window and did not change the CRM page. Sort of like making the navigation button as a URL (instead of web resource) and right clicking and selecting "open in new window".

    Is that possible?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,777 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,728 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete