title: CSOM Caml Query Not able to find file - SharePoint 2010
body: <p>I am try to get the following file "GC_SELF_TEST.ppt" document from the following folder</p>
  
  <p><a href="https://i.stack.imgur.com/smx9H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/smx9H.png" alt="Folder"></a>   </p>
  
  <p>When I run my code, it does not return any results.
  I'm quiet certain the problem is in my CamlQuery (I'm new to CSOM and CamlQuery).</p>
  
  <p>I would just like to get this document for download purposes. Any help would Appreciated!</p>
  
  <pre><code>        String site = "http://SPsite/";
          ClientContext clientContext = new ClientContext(site);
          clientContext.Credentials = new NetworkCredential("User", "Password", "Domain");
  
          CamlQuery query = new CamlQuery();
          query.ViewXml = "&lt;View Scope='RecursiveAll'&gt;
                              &lt;Where&gt;
                                  &lt;Eq&gt; 
                                     &lt;FieldRef Name='Name'/&gt;
                                     &lt;Value Type='Text'&gt;GC_SELF_TEST&lt;/Value&gt;
                                  &lt;/Eq&gt;
                              &lt;/Where&gt;
                           &lt;/View&gt;";
  
          Microsoft.SharePoint.Client.ListItemCollection docs = clientContext.Web.Lists.GetByTitle("Documents").GetItems(query);
          clientContext.Load(docs);
          clientContext.ExecuteQuery();
  
          foreach (Microsoft.SharePoint.Client.ListItem doc in docs)
          {
              Console.WriteLine(doc.Id);
          }
  </code></pre>
  
  <p>I also tried the following Query but no results: </p>
  
  <p><code>"&lt;View Scope='RecursiveAll'&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name='FileLeafRef'/&gt;&lt;Value Type='Text'&gt;GC_SELF_TEST.pptx&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&lt;/View&gt;"</code></p>