Forum Discussion
Brent Ellis
Oct 21, 2016Silver Contributor
a way to retrieve metadata of a previous version of a file? (using CSOM in PowerShell in SPO)
I am using CSOM in PowerShell, querying SharePoint Online, but in general, I am looking for a way to retrieve what a specific column/value was on previous versions of a document programmatically. ...
Velin Georgiev
Sep 03, 2017Brass Contributor
Hi Brent Ellis, have a look at the https://dev.office.com/blogs/new-sharepoint-csom-version-released-for-Office-365-august-2017 release, especially those classes:
- public property Microsoft.SharePoint.Client.ListItem.Versions
- public class Microsoft.SharePoint.Client.ListItemVersion
- public class Microsoft.SharePoint.Client.ListItemVersionCollection
I have not seen what is in these classes yet, if they do not work for you then you can assess the List Item Version Metatdata item from the _vti_bin/Lists.asmx service. More info here: http://blog.velingeorgiev.pro/how-get-list-item-field-versions-data-sharepoint-online. It is not ideal solution ad would be great if the august update offers that, but it is the only alternative I found so far.
Jim Duncan
May 25, 2022Iron Contributor
Velin Georgiev That last link now takes the user to a malware site. I know this post is from 5 years ago, but still...