List Items, Documents and Attached files

One of our customers is saving Outlook emails into SharePoint; I’ve written an Outlook plugin to do this. The emails themselves are being saved as .msg files within Document Libraries.

A Document Library containing .MSG files

However, they’d like a nice column with a little Paperclip icon if the Email has attachments. For normal Lists, there is a column like this (provided that the List allows attachments)…

An Example Standard List

This shows two list items, one of which has attachments, one of which doesn’t. Indeed, the one with attachments has multiple attachments (a feature that I often forget!)

An Example List Item

And we can edit these attachments…

Editing an Example List Item

Or add attachments to the List Item which doesn’t have any…

Another Example List Item

Okay, so Lists can can List Items with Zero to Many attachments. I then went and looked at document library though – and couldn’t see an ‘Attachments’ column…

Example Document Library

Trust me, I looked through all the settings and columns available in the views, just in case. The reality is, though, that the reason is pretty obvious – Documents implicitly have one attachment – the document itself! Thus an ‘Attachments’ would just show a series of little paperclip icons – which isn’t dreadfully useful… …and this is why Documents libraries and the like doesn’t show that column.

Advertisements
List Items, Documents and Attached files

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s