I have a SSRS report that uses a SharePoint document library as a data source. The issue is that the list has folder and in those folders are child items.

The dataset is only returning items from the root folder, everything in the sub-folders is effectively invisible...

Ideally I would simply add a scope="recursive" somewhere and everything would just work... Or specify a view from the list to use for the query.

Any ideas?

1 Answer 1

  1. use data source type xml, connection string: http://SiteName/_vti_bin/Lists.asmx
  2. the query is:

        <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems"> 
             <Parameter Name="listName"> 
                <DefaultValue>Library Name</DefaultValue> 
             <Parameter Name="viewName"> 
             <Parameter Name="rowLimit"> 
             <Parameter Name="queryOptions" Type="xml"> 
                      <ViewAttributes Scope="Recursive"/>
        <ElementPath IgnoreNamespaces="True">*</ElementPath>

view Name get from Library --> change View --> address --> queryString 'view'

comment: if the first row missing data in any field, the field not selected for all rows. so, replace code <ElementPath IgnoreNamespaces="True">*</ElementPath> and write all columns you whant to select:

  <ElementPath IgnoreNamespaces="True">

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.