SharePoint Document Libraries in Microsoft CRM

One of the key ways that you can integrate other web applications with Microsoft CRM is to use the Iframe control. When using Iframes to SharePoint Technologies pages you may want to remove the navigation and title bar chrome so that the document library has a more integrated appearance. Below are the steps I use to trim the chrome on Windows SharePoint Services v2 and SharePoint Portal Server 2003.


The first thing to do is to create a new view for your document library. By using a new view you can preserve the normal user experience when navigating the document library within SharePoint. This also provides for a tailored experience when integrated into Microsoft CRM.



         Figure 1 - Sections to Remove


Note: If you use “Split View” then saving the page will show the changes.


Creating a new view


  1. Navigate to the Document library
  2. On the left side click “Modify settings and columns”
  3. Scroll to the bottom of the settings page to the “Views” section
  4. Click “Create a new view”
  5. Choose “Standard View”
  6. Name the view and click OK to save (I usually name the view ‘FrameView’ so that I can easily identify it later.)

Open the site in FrontPage


  1. Click ‘Open Site’ from the File menu of Front page

    1. If your document library is in a sub-site navigate down to the correct sub-site. (Example: http://localhost:1919/sales/ where “sales” is a sub-site )

  2. Navigate to your document library in the site explorer
  3. Open the “Forms” folder under the document library
  4. Right click and select ‘Open’ on the view that was created above.

Find and remove the title bar frame


Now that we have the view open in FrontPage we need to find the sections to remove.

  1. Change the view to Split or Code view and start at the top line.
  2. Select ‘Find’ from the Edit menu and search for “ms-bannerframe”
  3. This will find a “table” element with the ms-bannerframe class.
  4. Select the complete tag (right click on table and click “Select Tag” is the easiest method to select the full tag)
  5. Delete the selected tag (This will remove the top level navigation bar)

Moving the RelativeFolderPath property


SharePoint has an important property stored in the titlebarareaframe that we need to move to the descriptiontext section.


  1. Select ‘Find’ from the Edit menu and search for “RelativeFolderPath”
  2. Select the tag and “Cut” it to the clipboard

<SharePoint:ListProperty Property="RelativeFolderPath" runat="server"/>

  1. Select ‘Find’ from the Edit menu and search for “ms-descriptiontext”
  2. Paste it just after the “Description” property
    <SharePoint:ListProperty Property="Description" runat="server"/>
    Property="RelativeFolderPath" runat="server"/>

Removing the titleareaframe


  1. Select ‘Find’ from the Edit menu and search for “div class="ms-titleareaframe"”
  2. Select and delete the complete “ms-titleareaframe” div tag

Removing the navigation bar sections


  1. Select ‘Find’ from the Edit menu and search for “class=ms-nav”
  2. Select and delete the TD tag with this class.



The view now has all of the title and navigation frames removed and will work will in an Iframe. SharePoint creates a virtual page for every view so you can craft a URL that will always show you desired view. The URL is made up of the following components


  1. Server
  2. Sub Site
  3. Document library name
  4. Forms folder
  5. View name

Example: http://localhost:1919/sales/Testframe/Forms/FrameView.aspx


Looking ahead, my next blog post will illustrate how to trim the chrome from a web part page. The structure is slightly different.


Rich Dickinson

Comments (17)

  1. KjellSJ says:

    You will also need to ensure that all links in the MSCRM view of the team-site are modified to ensure a controlled navigation. My solution to controlling links and onclick handlers:

  2. Eric Boocock says:

    Great Post.

    I found a small error:

    In the section:

    "Moving the RelativeFolderPath property

    Select ‘Find’ from the Edit menu and search for “RelativedFolderPath”

    Select the tag and “Cut” it to the clipboard"

    The find should be RelativeFolderPath not RelativedFolderPath

    Thanks for the post…

  3. richdi says:

    Thanks for the correction Eric. I just worked with our editor to get it fix.


  4. On the first of May this blog posted its first real entry. This blog was designed to be a place where…

  5. W.Meints says:

    I tried this and it worked partially. Now I can’t access subfolders or the dropdown menu of the documentlibrary when it is displayed in an iframe inside CRM.

    Any idea what might cause this behaviour?

  6. This post is a follow on to my post on removing the chrome from a document library view.

  7. richdi says:

    W. Meints,

    For your description of the problem is sounds like the RelativeFolderPath property was removed. This is the property that allows drill on and out of folders. I would try creating a new view and make sure that this property gets moved to after the description property.

    Hope this helps,


  8. Whenever I talk to people about Windows SharePoint Services and Microsoft Dynamics CRM everyone wants…

  9. Digging .NET says:

    Sharepoint and CRM integration

  10. dave^2=-1 says:

    MS Dynamics CRM has some info on removing chrome from Web Part pages and document libraries . This is

  11. Flood… Firstly let me appologise for not posting regularly these last few months. Work has been expremely

  12. Guruswamy Jetti says:

    Hi All,

    We have integreated CRM 4.0 with sharepoint 2007. we are displaying Document libraries in the IFrame, we are using windows authentication for both CRM and Sharepoint. we are getting the Authentication prompt for the sharepoint document library while we open first time.Please can anyone help us on the same.Let me know if any information required.

  13. Shweta Mehra says:


    If I navigate to any document/form/article/post, from a view that has been modified as specified above, navigation and title bar chrome would show up again. Is there any way to control this behavior for all sharepoint content that is displayed within MS CRM ?

    Any help will be highly appreciated.


Skip to main content