0

Is it possible to combine the sharepoint <In> statement with the <IsNull> statement? I only managed to get it working using an <Or> but would be great if you could place the <isNull> inside the <In> directly.

Thanks

Joseph Caruana
  • 2,241
  • 3
  • 31
  • 48

1 Answers1

0

The solution is as follows:

<Query>
   <Where>

      <In>
         <FieldRef Name='MyLookupField' LookupId='TRUE'/>
         <Values>
           <Value Type='Lookup'></Value>
           <Value Type='Lookup'>1</Value>
         </Values>
      </In>

   </Where>
</Query>
Joseph Caruana
  • 2,241
  • 3
  • 31
  • 48