0

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

enter image description here

2
  • 1
    Have you tried the userID instead of the userName? Commented Apr 20, 2017 at 7:42
  • Danny is right you just need $user.Id Commented Apr 20, 2017 at 8:10

1 Answer 1

2
<Where>
    <Eq>
        <FieldRef Name="CheckoutUser" LookupId="True" />
        <Value Type="Integer">USERID</Value>
    </Eq>
</Where>

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

2
  • Thanks a million Divya, Danny and Bunzab, It solved my problem. Commented Apr 20, 2017 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. Commented Apr 21, 2017 at 4:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.