I have the following query but I am not sure if it does what I really want:
<Where>
<And>
<Contains
<FieldRef Name='Phase' />
<Value Type='MultiChoice'>Design</Value>
</Contains>
<And>
<Contains>
<FieldRef Name='Process' />
<Value Type='Choice'>Blueprint</Value>
</Contains>
<Or>
<Contains>
<FieldRef Name='Document_x0020_Type' />
<Value Type='Choice'>Procedure</Value>
</Contains>
<Or>
<Contains>
<FieldRef Name='Document_x0020_Type' />
<Value Type='Choice'>Policy</Value>
</Contains>
<Contains>
<FieldRef Name='Document_x0020_Type' />
<Value Type='Choice'>Template</Value>
</Contains>
</Or>
</Or>
</And>
</And>
</Where>
I want to get all documents from a library where the
Phase = Design
Process = Blueprint
AND
Document type is either Procedure, Policy or Template.
In my first query I had Process = Start up and it gave me all the correct documents but when I changed it to Blueprint (no document has this Process as meta data yet) it returned half of all my documents.
Any ideas?
Thanks in advance.