Forum Discussion
Kerry_Williams
Microsoft
Oct 05, 2016Use CSOM to get files with no checked in version
I have a PowerShell script that uses SPDocumentLibrary.CheckedOutFiles to get files that are checked out in a library. This property is a list of checked out files including files that have no checke...
SanthoshB1
Oct 07, 2016Bronze Contributor
I have tested List.RootFolder.Files and it returns checked out files as well as files without version numbers as expected.
You have mentioned that List.RootFolder.Files does not return the files you are looking for. Can you let me know what files it returned?
You have mentioned that List.RootFolder.Files does not return the files you are looking for. Can you let me know what files it returned?
Kerry_Williams
Microsoft
Oct 07, 2016List.RootFolder.Files only returns files that have been checked in at least once. I see all of the files except the files that have never been checked in.
- Michal GolanMar 21, 2018Copper Contributor
Hi Kerry,
I have the same issue.
I need to get a full list of files that are checked out, including never checked in and to send it to the library owner.
did you managed to get a solution?
Thanks in advance,
Michal