Loop through all the folders in document library and fetch checked out files by specific user only

enter image description here

  • 1
    Have you tried the userID instead of the userName? – Danny '365CSI' Engelman Apr 20 '17 at 7:42
  • Danny is right you just need $user.Id – Bunzab Apr 20 '17 at 8:10
        <FieldRef Name="CheckoutUser" LookupId="True" />
        <Value Type="Integer">USERID</Value>

Use the above where clause to find the checked out file by a specific user and replace "USERID" with that user's id.

  • Thanks a million Divya, Danny and Bunzab, It solved my problem. – raju Apr 20 '17 at 11:02
  • You can use camljs.codeplex.com link for creating a CAML query. It shows how one can create CAML query using CamlJs-Console which is a Chrome extension. – Divya Sharma Apr 21 '17 at 4:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.