문제

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.

도움이 되었습니까?

해결책

Solved this. Did not work with QueryOptions, but with

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

instead

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top