1

Closed

LookupMulti type support

description

Hello!

How can I make CAML for MultiLookup field?
<Query>
   <Where>
      <Eq>
         <FieldRef Name='MultiLookup' />
         <Value Type='LookupMulti'>admin</Value>
      </Eq>
   </Where>
</Query>
Great tool! Thanks in advance!

Vitaly.
Closed Oct 12, 2016 at 9:17 PM by sadomovalex
Starting with version 4.2 (and Camlex.Client 2.2) LookupMulti field type is supported

comments

sadomovalex wrote Nov 13, 2015 at 1:04 PM

Well, currently it is not supported. Will leave it in issues. You may use the following workaround:
string query = Camlex.Query().Where(x => x["MultiLookup"] == (DataTypes.LookupValue)"Active").ToString().Replace("\"Lookup\"", "\"LookupMulti\"");

VeryWell wrote Nov 16, 2015 at 10:39 AM

This workaround kills your main feature - dynamic CAML generation. But anyway thank you and I will waiting for update!

sadomovalex wrote Nov 16, 2015 at 11:44 AM

just update won't come very fast. The idea was that Replace() should be done on the final caml after all dynamic generations. But of course in the future it should be supported in correct way. Added it to the todo list: https://camlex.codeplex.com/wikipage?title=Future%20improvements.

sadomovalex wrote Oct 12, 2016 at 9:18 PM

Starting with version 4.2 (and Camlex.Client 2.2) LookupMulti field type is supported