Domanda

I need to get all documents that are currently checked out in a site collection or web application using search. Also I need to get the time at which they were checked out.

Is it possible to this with search only.

Note: This whole process must be done through SharePoint search only.

È stato utile?

Soluzione

Mind you, you can do this but there are limitations...

  • Files that have never been checked in cannot be indexed, therefore they will never be found by the search.
  • If you were to access a file from the search that is checked out, you would be in fact opening the last checked in version.

So the column you are interested in is CheckoutUser. If a file is checkedout, this column will have a value. If the file is not checked out, this column will be blank. This column's crawled property points to the managed property mvCheckoutUser.

So all you had to do is search for mvCheckoutUser when it is not empty. Here you may have to be a little hacky and do something like:

mvCheckoutUser:a OR mvCheckOutUser:b OR mvCheckOutUser:c ...

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top