Wednesday 17 October 2012

Using out-of-the-box ways to get Email into SharePoint

Bellow are the implications on how easy is it to access the saved email and how much of the email (including it’s attributes) can be accessed after it has been transferred to SharePoint.



1. Manually Save an email message to SharePoint
Process
Treat the email as a file just like any other file that you would upload to SharePoint.
  • In Outlook open an email then select File | Save As…
  • Choose a format from the ‘Save as type’ drop down. I recommend saving it in Outlook Message Format (.msg)

  • Save the email (msg file) to a local drive
  • Now browse to the SharePoint list/library through the web browser and upload the file through the native SharePoint UI.
Pros
  • Upload occurs through native SharePoint UI so you will have the opportunity to set content type, enter/select column values, apply validation, trigger custom event handlers etc
  • The email is stored in msg format so it can be opened back up in Outlook without loss of data or email integrity.
  • You are left with the item open in the SharePoint UI so you can continue working on it (e.g. start a workflow)
Cons
  • Very time consuming and laborious
  • The entire process has to be repeated for each email, can’t do multiple at once
  • No email attributes get prompted to SharePoint columns
2. Email enable a SharePoint List or Library
Process
Selected SharePoint lists & libraries can be enabled to receive incoming email on an email address that is unique to the list/library. Users can then include the email address of the SharePoint list with the recipients of an email to have the email stored in SharePoint.
Great post from Joel Olsen for more detail on email enabled lists/libraries (SP2007)http://blogs.msdn.com/b/joelo/archive/2007/10/23/email-enabled-lists-and-inbound-email.aspx
Pros
  • Quick and simple method for the user to get the email into SharePoint
  • From a governance point of view only selected lists/libraries can be configured to accept incoming email
Cons
  • Considerable administration overhead to initially setup and configure
  • Users have to know which email addresses correspond to which lists/libraries
  • Constant admin overhead to enable new lists/libraries and setup email addresses and broadcast out to the user base
  • No email attributes get prompted to SharePoint columns
  • Attachments and email are stored as separate items in SharePoint
  • User cannot get the original email into SharePoint after the fact. That is, if a user receives an email they can forward it to the SharePoint list but it is the forwarded email that gets stored, not the original email as it was received by the user.
  • Email is stored in .eml format so it cannot be easily opened back up in Outlook and viewed/worked on with full integrity
  • At the time of writing, email enabled lists/libraries are not supported in BPOS or Office 365 / SharePoint Online
Further reading
Configure incoming e-mail (SharePoint Server 2010)
Configuring incoming email in SharePoint 2010 with Exchange – Step by Step Guide
Enable and configure e-mail support for a list or library (SharePoint 2007/WSS 3.0)
3. Map a drive to a SharePoint Library
Process
It’s possible to map a network drive (or create a shortcut to a network location) to provide access to the content of a SharePoint library in Windows Explorer much like it is just another directory structure on a file server.
For example, I have a library located at http://vs-server82/subsite/Email

I can map a drive to \\vs-server82\subsite1\email
You can also just bring up the run command and enter the location in directly \\vs-server82\subsite1\email
Either of these techniques should result in Windows Explorer displaying the contents of the library

You can now drag and drop email messages from Outlook into the Windows Explorer window and the files will be saved to SharePoint.

Pros
  • If you are trying to do a simplistic transfer of multiple emails from Outlook to a single SharePoint library with no setting of SharePoint column values than this might be sufficient. I’d see it more as an ad-hoc or one-off technique to get you out of trouble rather than a technique to rely on day-in-day out.
  • Email is saved in .msg format
Cons
  • Only works for libraries (you can see lists, but due to the way list items and there attachments are stored it’s not really useable)
  • Provides a very rudimentary interface to SharePoint and you may encounter problems with SharePoint specific functionality in some libraries (such as check in, check out, validation)
  • No SharePoint column values set
  • I’ve come across several discussion threads that warn against modifying SharePoint content accessed through this technique (see further reading links below)
  • Allowing (or promoting the use of this technique) may circumvent controls that have been put in place in SharePoint for data validation and document management
Further reading
4. Use the SharePoint WebDav View
Process
In the SharePoint 2010 Library ribbon there is an option to ’Open with Explorer’.

This will open Window Explorer and display the contents of the current SharePoint library in an almost identical way the the previous technique of using a mapped drive. Again you can drag and drop email from Outlook into the Explorer Window.
Pros
  • Similar to the previous technique but I would recommend this over the previous technique as it is using the WebDav standard for communicating with SharePoint
  • Email saved in .msg format
Cons
  • WebDav only goes so far, it’s a standard that existed long before SharePoint so as you would expect it only supports a very basic subset of SharePoint functionality
  • No SharePoint column values set
  • Known issues in an environment with a load balancer
  • Allowing (or promoting the use of this technique) may circumvent controls that have been put in place in SharePoint for data validation and document management
Further reading
5. Use a Discussion Forum
Process
It is possible to connect a SharePoint discussion board to Outlook to obtain the ability to drag/drop email to the discussion board.
    • Ensure incoming email is enabled on your farm
    • Create a discussion board in SharePoint

  • From within SharePoint, open the discussion board you just created and click on Connect to Outlook in the ribbon.

  • The discussion board will now appear in Outlook under ‘SharePoint Lists’

    • You can now drag and drop emails to the discussion board from within Outlook, and they will be copied across to SharePoint
    • You can view the contents of the discussion in Outlook (emails are converted to posts). One gotcha is that if you have automatic signatures setup then the post that is created will have your signature added to it (just as though you forwarded the original email) – see screenshot below. I’m sure with some tinkering you could probably come up with a solution for this.

Pros
  • Simple drag/drop method for the user to get the email into SharePoint
  • User self-service (not ongoing administration required to setup/maintain)
  • Discussion board content visible from Outlook or SharePoint
Cons
  • Email is not stored in .msg file format
  • No SharePoint column values set
  • Integrity of the email message is not preserved (that is you can never open it back up in Outlook as an email)
Further reading