Hi I am trying to build a query using caml query builder - Below is the query (The query = get the values only whose address = 1234st AND LastName = Doe) - I believe the placement of AND operator is giving me error, tried various permutation by changing the position of AND operators but no luck - any suggestions?
<OrderBy>
<FieldRef Name = "ID" Ascending = "TRUE"/>
</OrderBy>
<Where>
<And>
<Eq>
<FieldRef Name = "HomeType"><Value Type="Choice">Condo</FieldRef>
</Eq>
<And>
<Eq>
<FieldRef Name = "LastName"><Value Type="Text">Doe</FieldRef>
</Eq>
</And>
</And>
</Where>
Name = "becomesName=". – Kit Menke Jul 15 '13 at 03:58<FieldRef>don't want a body!!! The answer of @ilMattion is right. – Emaborsa Jul 11 '16 at 08:05<FieldRef Name="HomeType"><Value Type="Choice">Condo</Value></FieldRef>. This is wrong, The right format is<FieldRef Name = "HomeType" /><Value Type="Choice">Condo</Value>– Emaborsa Jul 11 '16 at 17:44