12 votes

How can you move a document with its version history to a new library?

The Content and Structure worked fine for me. Moving individual documents from one library to another captures all versions. Assuming, of course, versioning is configured the same on both libraries. ...
user avatar
  • 121
9 votes
Accepted

How to restore for all documents in a library to one version older? Maybe powershell?

$web = Get-SPWeb -Identity http://sp2010 $list = $web.Lists["Documents"] $items = $list.Items foreach ($item in $items) { $file = $item.File $fileVersions = $file.Versions if ($...
user avatar
7 votes

Does Versioning only work for MS Word Documents?

Both lists and libraries can use Versioning, the file type does not matter in the case of documents.
user avatar
6 votes

How to overwrite an existing document in SharePoint Library with a new document with different name?

Name the file you want to upload doc1.pdf. Go to "Upload" like you are adding a new file to the SharePoint folder. However, make sure the checkbox is selected "Add as a new version to existing files". ...
user avatar
  • 61
6 votes

How to overwrite an existing document in SharePoint Library with a new document with different name?

I know this is not quite an answer you may be looking for, but why not rename doc2.pdf to doc1.pdf and then rename it in SharePoint itself?
user avatar
  • 183
6 votes

How can you move a document with its version history to a new library?

For future reference: there's a legacy API used by SharePoint Designer, called FrontPage RPC, and there's a bunch of methods, including move document that accepts a put_option parameter with ...
user avatar
6 votes

How can you move a document with its version history to a new library?

I always employ the drag and drop method suggested by Tom. Easiest enough for my end users to do themselves and I still have the version history.
user avatar
  • 149
5 votes

How can you move a document with its version history to a new library?

Our method was uploading the infopath form to the destination libary and deselecting "Enable this form to be filled out by using a browser". This way the content types in the from library matched the ...
user avatar
  • 51
5 votes

How can you move a document with its version history to a new library?

There's a new solution in Office 365. You can now select a file or group of files in the modern experience in OneDrive or SharePoint and select Move to. A file or group of files moved this way will ...
user avatar
  • 3,580
5 votes
Accepted

Enable versioning on document libraries excluding some

I asume you are filtering by site and not by library. You could do something like this: $ignoreSites = @("http://siteurl/site1", "http://siteurl/site2") Add-PSSnapin Microsoft.SharePoint.PowerShell ...
user avatar
  • 454
5 votes

Is it possible to set the version number of SharePoint document?

No, it's not possible to set the document version number manually in all SharePoint versions, As a workaround solution In case the current document version number in the test site is higher than ...
user avatar
5 votes
Accepted

Alternatives to Versioning?

If you read this question/answer you find a powershell script to have back the 'No versioning' option in libraries Site Assets library still carries the 'No versioning' option The final and ...
user avatar
  • 2,618
4 votes

How can you move a document with its version history to a new library?

//To move file from source library to destination through Event handler SPFile sourceFile = properties.ListItem.File; SPFile destFile = null; SPUser userCreatedBy = sourceFile.Author; DateTime ...
user avatar
4 votes

Enable versioning on all lists and libraries

I know it's been 3 years ago and already answered, but here you can find plenty of versioning scripts and ready programs: Disable a versioning on Image Libraries in SharePoint using PowerShell Enable ...
user avatar
  • 2,415
4 votes
Accepted

Document Library-Major and Minor Views

Sean It is possible to do this however you will need a workflow to run behind the scenes to create a sneaky URL with some specific elements in it to show the latest Published version of any document -...
user avatar
4 votes
Accepted

SharePoint Online List Minor Versions?

Yes, as per documentation: Simple versioning is available for site lists, but minor versions are not available. Each version of a list item is numbered with a whole number. If your organization ...
user avatar
4 votes
Accepted

Why is my create "Multiple lines of text" column missing append changes choice field even with versioning?

The content will be missing if you are adding this column to a document library or document set. Multi-line text fields act differently in Lists than in Libraries. If you don't get what you want here, ...
user avatar
4 votes

How to display published date column in document library

You can't use modified data as it will have the date for every metadata change. This may seem like an overkill for such a simple requirement, but I think you will need to write custom C# code using ...
user avatar
  • 30.2k
4 votes
Accepted

2013 Foundation - Struggling to get versions to match

I think you dont need to install the hotfix And MS14-202 due to fact that latest CU include all the previous fix.I would do the following way. Install the Service Pack 1 Mark 2.( as this is base line ...
user avatar
  • 56.7k
4 votes

sharepoint online: new libraries are created with major versioning at 500

There's no global setting in SharePoint Online unfortunately. But its really not a big issue having 500 major versions on each document. Versioning just saves the delta (last changes) and not the ...
user avatar
  • 25.3k
3 votes

Enable versioning on SPList programmatically

You probably forgot to call SPList.Update method to apply the changes, for example: var tasksList = web.Lists.TryGetList("Tasks"); tasksList.EnableVersioning = true; tasksList.Update();
user avatar
3 votes

Enable versioning on SPList programmatically

I've used code like this in a console app where I was reconfiguring some lists. This enables versioning and sets limits. var depts = web.Lists.TryGetList("Depts"); if (depts != ...
user avatar
3 votes
Accepted

Overwrite version from a workflow

Use SPListItem.UpdateOverwriteVersion() Updates the item without creating another version of the item. SPListItem.SystemUpdate method More Explanation
user avatar
3 votes
Accepted

Version History (more...)

I found my answer in the source of Versions.aspx, the system file used for the Version history modal. In this file at line 330, we can see that the number of changed that can be shown in hard coded at ...
user avatar
3 votes
Accepted

511 limit for minor version is per item or per library

As mentioned here: Introduction to versioning. By default, each major version can have up to 511 drafts (minor versions) This should still hold true for SharePoint 2013.
user avatar
3 votes

Drag & Drop a New Version

'Replace it' will create a new version of the file if the library has versioning enabled. You can check if the old version was retained by looking at the file's Version History.
user avatar
3 votes
Accepted

Programmatically Get Version Changes for List Item in SharePoint 2013

There's no direct way provided by the server side API to get version changes. But you can compare the fields of different versions: using (SPSite site = new SPSite("http://my.domain.com/")) using (...
user avatar
  • 3,236
3 votes
Accepted

How to display published date column in document library

You are right that the Modified date applies to any change, such as a change to just metadata. So if you want to have a date field that is specific to when a document was checked in as a major version,...
user avatar
  • 2,320
3 votes

Does Versioning only work for MS Word Documents?

Versioning works with all document types and different list options. Versioning is available for list items in all default list types—including calendars, issue tracking lists, and custom lists. ...
user avatar
  • 397
3 votes
Accepted

How does SharePoint 2013 get the document name when checking in / uploading into a library?

As with all Web applications, when you upload a document, the file name is posted to the server along with the file content. SharePoint gets the file name, and checks in the SQL content DB if a file ...
user avatar
  • 9,666

Only top scored, non community-wiki answers of a minimum length are eligible