1

I have an issue with caml or query problem:

 <Where>
  <Or>
   <Eq>
     <FieldRef Name='Editor'/><Value Type='User'>x</Value>
  </Eq>
  <Eq>   
     <FieldRef Name='Editor'/><Value Type='User'>y</Value>
  </Eq>
  <Eq><FieldRef Name='Envoye_vers_Directeur' /><Value Type='Boolean'>0</Value>
  </Eq>
</Or>

1 Answer 1

5

CAML can only have two conditions per group (you have three), so you need to nest one of your statements. Try this:

<Where>
    <Or>
        <Or>
            <Eq>
                <FieldRef Name='Editor'/><Value Type='User'>abdellatif</Value>
            </Eq>
            <Eq>   
                <FieldRef Name='Editor'/><Value Type='User'>system</Value>
            </Eq>
        </Or>
        <Eq>
            <FieldRef Name='Envoye_vers_Directeur' /><Value Type='Boolean'>0</Value>
        </Eq>
    </Or>
</Where>
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.