Nov 22 2016 02:15 PM
How to get the checked out files of all user with rest.
Nov 23 2016 06:40 AM
I just ran a test and this pulled back checked out items in a library in SharePoint Online:
/_api/web/lists/getbytitle('Documents')/items?$filter=CheckoutUserId ne null
Nov 23 2016 06:54 AM
That only retrieves the files that I checked out. I need to see all the files checked out by everyone
Nov 23 2016 07:07 AM
Are you sure that the files have been checked in before. It may be that you cannot see files that are checked out because the files have never been checked in. Once the initial check in has happened, it becomes visible to all users, even if it's subsequently checked out.
Nov 23 2016 07:16 AM
I just ran this against a document library with files checked out from 2 different people and it returned both items:
/_api/web/lists/getbytitle('Documents')/items?$select=CheckoutUserId/Title&$filter=CheckoutUserId ne null
Screenshot of results:
Nov 23 2016 08:18 AM
Yes, because he will see the last checked in version. But I need to see the first checked out file. The ManageCheckedOutFiles.aspx page allows me to see all check out files (including first checked out files)
Nov 23 2016 08:24 AM
In this page are two first checked out items that other people has.
I use that /sites/devflam/_api/web/lists/getbytitle('Documentos')/items?$select=CheckoutUserId/Title&$filter=CheckoutUserId%20ne%20null but it does not work
Nov 23 2016 11:31 AM
Nov 23 2016 12:43 PM - edited Nov 23 2016 12:44 PM
You are right files with no checked in version that were not uploaded by you are not visible via REST (as far as I can find via testing). What is your use case to find these files? You could probably write a script to get this using CSOM.
Nov 10 2021 03:18 PM
@Sebastián Acevedo Flórez have you gotten an answer to this? I am looking for solution to this as well. Need to see all checked out files (to include initial upload checked out by another user/no checked in version). Thank you.
Apr 02 2024 12:38 PM