2

I am using SharePoint 2013 Server. I have a document library with enabled versioning. SPFolder.Item.Versions always returns only one last version of the folder item despite it was modified multiple times. SPFolder.Item.Versions.Count always is equal to 1.

How can I get all versions of SPFolder (or SPFolder.Item)?

2 Answers 2

5

SharePoint doesn't support multiple versions of folders in Lists and Libraries.

2
  • Any reference source? Commented Jun 3, 2013 at 10:06
  • 1
    MSDN and TechNet don't seem to specifically indicate this anywhere, but @Per Jakobsen is correct. SharePoint offers no version functionality on folders in lists and libraries. Commented Jun 3, 2013 at 14:52
1

The only property of a folder that you can change in the UI is the title. Changing this property doesn't update the version, and, the Version History button is greyed out for folders. So SP certainly doesn't track versions of folders out of the box, I don't know if it's possible to do something with an event receiver in code to forcibly update it or not.

Document Sets have versioning capability and may suit your requirements, though they are not available in Foundation if that is what you are using. I've not seen something authoritative that says "Folders don't support versions", but it's certainly implied that that's something that document sets give you that folders don't.

3
  • 2
    No, I can have more than one field in folder content type. I can add fields from site columns to it. So there must be another reason why SP doesn't track versions of folders. Commented Jun 4, 2013 at 9:14
  • How are you adding fields to the folder? Commented Jun 4, 2013 at 12:20
  • There I found a guide for SharePoint 2007 sharepoint-guru.com/2007/06/adding-metadata-to-folder.html But it's the same in newer versions. Commented Jun 5, 2013 at 8:26

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.