Forum Discussion
a way to retrieve metadata of a previous version of a file? (using CSOM in PowerShell in SPO)
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 DuncanMay 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...
- Brent EllisSep 05, 2017Silver ContributorAppreciate all the responses, I managed to figure it out a while back (but didn't update this thread), but I believe I used this CSOM route you referenced to do it.
- Dinesh NatarajanNov 16, 2017Copper Contributor
Hi Brent,
Can you pls share your solution which you implemented. Thanks!
Dinesh