Hot answers tagged

1

Before getting into the analysis how to use CAML query instead of LINQ, better know what is the usage of CAML Query. CAML - Collaborative Application Markup Language CAML Query is used in various ways within the context of Microsoft SharePoint Foundation to define queries against list data. Source: MSDN From the above statement it is very clear that the ...


1

While writing CAML query, you must understand the architecture how it works. It is pretty simple. You just have to do logical AND/OR operators. Any operator must have 2 conditions to combine and test. SCENARIO 1 : This is 1 Operator use with 2 conditions <Or> <Eq><FieldRef Name='Status' /><Value Type='Text'>(3) TestStatus3&...


1

CAML queries only accept two conditions for logical operators. So you can do <And> <Eq>...</Eq> <Eq>...</Eq> </And> but not <And> <Eq>...</Eq> <Eq>...</Eq> <Eq>...</Eq> </And> Solution is using two s: <And> <And> <Eq>...</Eq>...



Only top voted, non community-wiki answers of a minimum length are eligible