CAML Query not running
- This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › vLooup for SharePoint › CAML Query not running
Tagged: vLookup CAML
On the vLookup condition editor, I need to have 3 AND statements. The GUI only allows 2 so I’m trying to write it in CAML.
I’ve used a CAML builder and tested my code and it works perfect, but for some reason it’s like code keeps being ignored and it just keeps bringing back the results without the 3rd AND.
My CAML code is:
<Query>
<Where>
<And>
<Eq>
<FieldRef Name=”Staff_x0020_Name” LookupId=”False”/>
<Value Type=”Lookup”>[currentItem:Staff_x0020_Name]</Value>
</Eq>
<And>
<Eq>
<FieldRef Name=”Property” />
<Value Type=”Text”>[currentItem:Property]</Value>
</Eq>
<Eq>
<FieldRef Name=”Agreed” />
<Value Type=”Text”>True</Value>
</Eq>
</And>
</And>
</Where>
</Query>
Any help would be greatly appreciated!
Hi,
The CAML should not include the
Alexander