I am trying to retrieve all items that are under a certain folder, in a document library.
This is what i have so far:
List DocumentsList = clientContext.Web.Lists.GetByTitle(list);
CamlQuery camlQuery = new CamlQuery();
camlQuery = new CamlQuery();
camlQuery.ViewXml = @"<View Scope='Recursive'>
<Query>
<Where>
<eq>
<FieldRef Name='FileDirRef'/>
<Value Type='Text'>
/ecm/Business/Business/Projects/IDECO_P01030000
</Value>
</eq>
</Where>
</Query>
<RowLimit Paged='TRUE'> 30 </RowLimit>
</View>";
ListItemCollection listItems = DocumentsList.GetItems(camlQuery);
clientContext.Load(listItems);
clientContext.ExecuteQuery();
It is definitely a CAML query problem, I am just unsure of how to fix it as yet.
Eq
operator. Being an XML dialect, CAML is case-sensitive.