Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Caml Query With More Than Two Or Statements

$
0
0

I am trying to perform a single query that has an indeterminate number of Or statements inside of it. If the hard limit is only two in Sharepoint 2007 is there a way to do something like below, without resorting to a third party library or making multiple calls?

<Where>
   <Or>
      <Eq>
        <FieldRef Name='Name' />
        <Value Type='Text'>John</Value>
     </Eq>
     <Eq>
        <FieldRef Name='Name' />
        <Value Type='Text'>Linda</Value>
     </Eq>
     <Eq>
        <FieldRef Name='Name' />
        <Value Type='Text'>Jim</Value>
     </Eq>
     <Eq>
        <FieldRef Name='Name' />
        <Value Type='Text'>Jane</Value>
     </Eq>
   </Or>
</Where>


Viewing all articles
Browse latest Browse all 25064

Trending Articles



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