• RyanDev.com

  • How To Include A Custom View In The Site Map In Microsoft Dynamics CRM 4.0

5th October 2009

How To Include A Custom View In The Site Map In Microsoft Dynamics CRM 4.0

Adding any view, including custom views, into the Site Map in Microsoft Dynamics CRM is very easy to do.  Perhaps you have created a view that you want people to have easy access to or maybe you are trying to setup the navigation in a way that your users will best understand.   

Since everything in Microsoft CRM is URL addressable the first step is to determine the URL of the view you want to add to the Site Map.  To do this, navigate to the view in CRM, click on More Actions, Copy Shortcut, Of Current View as shown in the screen shot below.

sitemap1.jpg

Depending on your browser version and settings, you will likely get a prompt warning you that CRM will be accessing your clipboard.  Click Allow Access.

sitemap2.jpg

The URL of the CRM view is now on your clipboard.  Paste the URL into NotePad for use in a few moments.

Now you need to export the Site Map from Microsoft CRM so you can make the change and then re-import the Site Map. 

Click Settings, Customization, Export Customizations.

sitemap3.jpg

Select the Site Map from the list and click Export Selected Customizations.

sitemap4.jpg

Click OKto Microsoft CRM’s message.

sitemap5.jpg

You will then be prompted to save a zip file that contains the Site Map.  Click Save.

sitemap6.jpg

Name the file SiteMap.zip and save it somewhere on your computer such as your Desktop.

sitemap7.jpg

Unzip SiteMap.zip and open customizations.xml in NotePad.  Now, either add the URL you copied earlier to an existing entry in your site map or add a new sub area wherever you want it to be displayed in your Site Map.  The SubArea will look like the following:


<SubArea Id=”UniqueID” Url=”/../_root/homepage.aspx?etc=1&viewid=%46b5CC8A38-2374-DD11-955C-000C29ECA931%7d” Title=”My Custom View” />


Note: The URL that was copied from CRM earlier will need slightly modified.  After the “?” in the url you will see the ampersand “&” right before viewid.  You will get errors trying to import the customizations back into CRM because of the incorrect XML syntax.  You will need to replace the “&” with “&” to be able to import.Second Note: You will want to use a relative url meaning that you remove the http://servername/ portion from the url that was copied earlier.  This is important so that Microsoft CRM in offline mode will still work. Third Note: Please refer to Microsoft documentation for help with specific syntax within the Site Map XML file.Now, all you have to do is import the customizations back in to Microsoft CRM.  Go back to Settings, Customization, and choose Import Customizations. 

sitemap8.jpg

Select the file you saved.

sitemap9.jpg

Click Upload and Microsoft CRM will read in the XML file and will display a list of all entities available to upload.  Select Site Map and click Import Selected Customizations.

sitemap9b.jpg

Click OK to CRM’s prompt.

sitemap10.jpg

Note: Unlike importing most other customizations, there is nothing to Publish after importing the Site Map.  To see your changes you may need to refresh IE by pressing Ctrl+F5 or sometimes you even have to clear out your history to see the changes take effect.

This entry was posted on Monday, October 5th, 2009 at 10:07 pm and is filed under Microsoft Dynamics CRM. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

There are currently 15 responses to “How To Include A Custom View In The Site Map In Microsoft Dynamics CRM 4.0”

Why not let us know what you think by adding your own comment! Your opinion is as valid as anyone elses, so come on... let us know what you think.

  1. 1 On October 8th, 2009, Sam said:

    Very well written. Thank you.

  2. 2 On April 16th, 2010, best program said:

    Cool blog.

  3. 3 On June 2nd, 2010, Ned said:

    Awesome.

  4. 4 On July 14th, 2010, Reny Mathew said:

    But what if you need a URL without GUID, eg for a installer or multi premise deployment with GUID approach will fail.

    instead of
    homepage.aspx?etc=10176&viewid=%7b5CDAE85D-868E-DF11-8FD1-001D92E25FDF%7d

    something like this

    homepage.aspx?etc=10176&viewname=%7bInactiveAccounts%7d
    or
    homepage.aspx?etc=10176&savequeryname=%7bInactiveAccounts%7d

  5. 5 On August 1st, 2010, insomnia said:

    your blog’s design is simple and clean….

    Mind if I use some of the information from this post if I provide a link back to your site?…

  6. 6 On August 18th, 2010, Kai Bergsman said:

    good site!

  7. 7 On September 18th, 2010, chinese said:

    somebody educated me with this a couple weeks ago. this is great

  8. 8 On October 29th, 2010, filipino said:

    nice info. the number of comments in this article prove that I should implement some of these plugins on my sites.

  9. 9 On October 30th, 2010, Johnathan said:

    Wonderful solution.

  10. 10 On October 31st, 2010, Marcy said:

    Fascinating post.

  11. 11 On August 26th, 2011, adamek said:

    ryandev.com bookmarked !!

  12. 12 On September 12th, 2011, Plavius said:

    Great post.

    Just mind that you wrote:

    “You will need to replace the “&” with “&” to be able to import”.

    I think you meant: “with “&”” :)

  13. 13 On September 12th, 2011, Plavius said:

    Haha, the blog renders the “&” + “amp” + “;” as regular “&”… :P

  14. 14 On November 5th, 2011, cipro said:

    Thank you so much for this great webite! It is very informative.

  15. 15 On November 30th, 2011, bags said:

    Thanks for taking the time to provide us all with the info!…

Leave a Reply

  • Links

  • Calendar

  • February 2012
    S M T W T F S
    « Jan    
     1234
    567891011
    12131415161718
    19202122232425
    26272829