Select Page

Combine List View and CAML Query string in SPQuery

There is a need sometimes to combine a physical list view (on a SharePoint list) with a custom CAML query when retrieving the data in the SharePoint object model. Most of you probably know that there is an overload of the SPList.GetItems() method which takes a SPQuery...

Nested CAML queries with multiple ORs or ANDs

Sometimes is Linq2SharePoint just not an option. Unfortunately. I don’t know how many times I have written methods which build nested CAML queries for multiple ORs or ANDs (when you have to OR more than two values). And of course I always forget where it was....