It try retrieving all Comments from a single person inside a discussion board. This is the CAML:

  <QueryOptions><ViewAttributes Scope='RecursiveAll' /></QueryOptions>
        <FieldRef Name='Author' LookupId='TRUE'/>
        <Value Type='Lookup'>10</Value>

When looking at that List manually I can see that there are discussions with comments from the author with id "10"

But when I run this query all I retrieve is an empty result.


Solved this. Did not work with QueryOptions, but with

<View Scope='RecursiveAll'>


  • Mark this as the answer so that the question can be closed. Mar 21 '16 at 19:10
  • I will. Just cannot until tomorrow :)
    – Ole Albers
    Mar 22 '16 at 8:12

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.