What is the caml query for a Lookup field with multi values?
So far, I am using the following without success (it just throws an error). My Lookup column is:
Lookup
-------
2;3
2
3;4
<Contains><FieldRef Name="LookupColumn"/><Value Type="LookupMulti">2</Value></Contains>
What is wrong with that query??
SPQuery oQuery = new SPQuery();
oQuery.Query = "<Where><Eq><FieldRef Name=\"LookupColumn\" LookupId=\"TRUE\"/><Value Type=\"LookupMulti\">2</Value></Eq></Where>";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With