1

How can I retrieve data from two SharePoint List using Join CamlQuery ?

3 Answers 3

1

hope these links will help you out,

http://yogeshlotlikar.wordpress.com/2012/02/17/caml-query-joins/

http://blogs.msdn.com/b/kaevans/archive/2012/01/20/sharepoint-2010-caml-list-joins.aspx

0

http://cawl4sharepoint.com/cawl4sharepoint/cawl_querybuilder/

cawl_QueryBuilder cawl = new cawl_QueryBuilder(); cawl.Select("Users_Title"); cawl.Select("Users_Age"); cawl.Select("Users_Sex"); cawl.Select("CarBrand"); cawl.Join("UsersList";"OwnerColumn"); cawl.Get('UserCarsList');

StringBuilder Result = new StringBuilder(); foreach (SPListItem item in cawl.ListItemCollection()) { Result.Append(item["Users_Title"].ToString() + item["Users_Age"].ToString() + item["Users_Sex"].ToString() + item["CarBrand"].ToString());

} Label1.Text = Result .ToString();

0

You should try using SPSiteDataQuery for Join Operation..

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx

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.