0

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

<View>
  <QueryOptions><ViewAttributes Scope='RecursiveAll' /></QueryOptions>
  <Query>
    <Where>
      <Eq>
        <FieldRef Name='Author' LookupId='TRUE'/>
        <Value Type='Lookup'>10</Value>
      </Eq>
    </Where>
  </Query>
  <ViewFields></ViewFields>
</View>

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.

0

Solved this. Did not work with QueryOptions, but with

<View Scope='RecursiveAll'>
<Query>...</Query>
</View>

instead

  • Mark this as the answer so that the question can be closed. – Ramana Viswanadha 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.