Welcome to MSDN Blogs Sign in | Join | Help

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"/>
    <SharePoint:ListProperty
    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

Published Tuesday, June 20, 2006 6:19 PM by crmblog
Filed under: , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: SharePoint Document Libraries in Microsoft CRM

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: http://kjellsj.blogspot.com/2006/06/integrating-team-sites-into-mscrm-part.html
Thursday, June 22, 2006 2:44 PM by KjellSJ

# re: SharePoint Document Libraries in Microsoft CRM

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...
Saturday, June 24, 2006 11:31 PM by Eric Boocock

# re: SharePoint Document Libraries in Microsoft CRM

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

Rich
Tuesday, June 27, 2006 6:13 PM by richdi

# CRM Team blog hits top ten list

On the first of May this blog posted its first real entry. This blog was designed to be a place where...
Thursday, June 29, 2006 3:54 PM by Microsoft Dynamics CRM Team Blog

# re: SharePoint Document Libraries in Microsoft CRM

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?
Thursday, July 06, 2006 5:33 AM by W.Meints

# Trimming the SharePoint chrome from Web Part Pages for use in Microsoft CRM iFrames

This post is a follow on to my post on removing the chrome from a document library view. http://blogs.msdn.com/crm/archive/2006/06/20/639918.aspx...
Thursday, July 06, 2006 2:44 PM by Microsoft Dynamics CRM Team Blog

# re: SharePoint Document Libraries in Microsoft CRM

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,
Rich
Friday, July 07, 2006 6:33 PM by richdi

# Code snippet for creating a SharePoint document library

Whenever I talk to people about Windows SharePoint Services and Microsoft Dynamics CRM everyone wants...
Tuesday, September 12, 2006 10:32 AM by Microsoft Dynamics CRM Team Blog

# Sharepoint and CRM integration

Sharepoint and CRM integration
Monday, September 18, 2006 1:22 PM by Digging .NET

# stefan @ decatec - Sharepoint and CRM integration

Wednesday, January 10, 2007 3:10 PM by stefan @ decatec - Sharepoint and CRM integration

# stefan @ decatec - Sharepoint and CRM integration

Friday, January 12, 2007 6:26 AM by stefan @ decatec - Sharepoint and CRM integration

# Biztalk + Sharepoint = stefan @ decatec - Sharepoint CRM integration

# Removing chrome from SharePoint page

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

Friday, February 01, 2008 5:56 AM by dave^2=-1

# SharePoint 3.0 Document Libraries & CRM

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

Friday, April 11, 2008 10:38 AM by Microsoft Dynamics CRM UK Blog

# Cargar archivos en el servidor Crm 3.0 | hilpers

Tuesday, January 20, 2009 2:35 PM by Cargar archivos en el servidor Crm 3.0 | hilpers

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker