Announcements
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:
- <html><head>
- <title></title>
- <meta charset="utf-8"></head>
- <body>
- <script type="text/javascript">
- function GoGoogle()
- {
- window.open("http://www.google.com","_blank");
- }
- window.onload=GoGoogle();
- </script>
- </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
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.
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... :(
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?
André Arnaud de Cal...
293,777
Super User 2025 Season 1
Martin Dráb
232,728
Most Valuable Professional
nmaenpaa
101,158
Moderator