Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Joining sharepoint list data for Reporting Services using straight CAML call to Lists Web Service

$
0
0

Hi, I know there are many articles that discuss the different ways to join sharepoint lists, as well as many links pointing to the U2U CAML Query Builder. Then there are examples showing this with an SPQuery object in c#, which I am comfortable with. 

My question is, can you return a joined dataset using a straight CAML call to the lists web service, without using SPQuery and c#? 

So for instance, here is CAML to pull data back from one list (built with the Query Builder in reporting services):

<RSSharePointListxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ListName>Release Detail</ListName><ViewFields><FieldRefName="Role"/><FieldRefName="WBS"/><FieldRefName="WBS_x0020_Group"/><FieldRefName="Title"/><FieldRefName="ID"/></ViewFields></RSSharePointList>

Can I incorporate something like this, and return a joined dataset?:

<Joins><JoinType='LEFT'ListAlias='customer'><Eq><FieldRefName='CustomerName'RefType='Id'/><FieldRefList='customer'Name='ID'/></Eq></Join><JoinType='LEFT'ListAlias='customer_city'><Eq><FieldRefList='customer'Name='CityName'RefType='Id'/><FieldRefList='customer_city'Name='Id'/></Eq></Join></Joins>

If so what is the exact syntax, and are there any references showing this in a straight caml call, without the use of c# and SPQuery? 

Thanks!


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>