I am searching my list but the list is in folders. How can I use a query to ignore the folders and get the whole list so I can search it. I am using sharepoint 2013 and javascript. I want to get all items that are in all folders. None of the folders I have tried this:
camlQuery.set_viewXml("<View><QueryOptions><ViewAttributes
Scope='RecursiveAll' /></QueryOptions><Query><Where><And><IsNotNull>
<FieldRef Name='ID' /></IsNotNull><Eq>
<FieldRef Name='ContentType' /><Value Type='Text'>Folder</Value></Eq></And></Where>
</Query></View>");
<Eq><FieldRef Name='ContentType' /><Value Type='Text'>Folder</Value></Eq>This means you are searching Folder content type items. Thus it will not bring Document content type items. Remove the above<Eq>condition and try.. – Arsalan Adam Khatri Oct 15 '14 at 15:18<Where>:<Eq><FieldRef Name='FSObjType'/><Value Type='int'>0</Value></Eq>– wjervis Oct 15 '14 at 16:00