AnsweredAssumed Answered

Query list for Folder/Item Child Count

Question asked by twhitesell on Aug 26, 2014
Latest reply on Dec 22, 2014 by eharris04

Hi,

 

I am having a problem retrieving both the folder & item child counts when using a Query List - they are returning empty when they shouldn't.

 

Specifically, I am looking at libraries with the CAML query example as below:

 

 

<Query>

  <Lists>

    <List ID="{{Common:ListID}}" />

  </Lists>

  <ViewFields>

    <FieldRef Name="FolderChildCount" />

  </ViewFields>

  <Where>

    <Eq>

      <FieldRef Name="ID"  />

      <Value Type="Counter">{WorkflowVariable:intFolder}</Value>

    </Eq>

  </Where>

  <ViewAttributes Scope="RecursiveAll" />

</Query>

 

This query works just fine when FolderChildCount is changed  to something else, e.g. FileRef to return the URL Path, but won't return the Folder/Item Child Count.

 

Any help appreciated

Outcomes