Can someone tell me why the following CAML query is not filtering results? It's returning files that do not contain "/Internal/Bug 594" in their FileRef value. Thanks.
<View Scope='Recursive'>
<RowLimit>1000</RowLimit>
<Query>
<And>
<Eq>
<FieldRef Name='FSObjType' />
<Value Type='Text'>0</Value>
</Eq>
<Contains>
<FieldRef Name='FileRef' />
<Value Type='Text'>/Internal/Bug 594</Value>
</Contains>
</And>
</Query>
</View>
And here's the code i'm using to execute this query:
CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml = [the query you see above];
//IEnumerator<ClientOM.List> LibsIterate = null;
ListItemCollection tempItems = LibsIterate.Current.GetItems(camlQuery);
//ClientOM.ClientContext clientContext = null;
clientContext.Load(tempItems);
clientContext.ExecuteQuery();
//List<ListItem> allItems = new List<ListItem>();
allItems.AddRange(tempItems.ToList());
<Value Type='Text'>
to<Value Type='URL'>
<Value Type='Text'>