title: SharePoint ListItemCollection.GetById returns empty ListItem?
body: <p>So im trying to retrieve data from a sharepoint server ListItem</p>
  
  <p>The only problem is that this part here:</p>
  
  <blockquote>
    <p>collection.GetById(itemId)</p>
  </blockquote>
  
  <p>returns a completly empty ListItem instead of the ListItem corresponding to the id  </p>
  
  <p>when i check with the debugger the item is indeed inside the collection and all the data is in there.</p>
  
  <p>How do i correct this or am i missing something essential here?</p>
  
  <pre class="lang-cs prettyprint-override"><code>        public Dictionary&lt;string, object&gt; GetPendingEmployeeItem(int itemId)
          {
              var list = _app.Sharepoint.Web.Lists.GetByTitle("New Employee");
              var query = new CamlQuery();
              query.ViewXml = "&lt;View&gt;&lt;/View&gt;";
  
              var collection = list.GetItems(query);
              _app.Sharepoint.Load(collection, items =&gt; items.Include(
                  item =&gt; item.Id,
                  item =&gt; item.DisplayName,
                  item =&gt; item.FieldValuesAsText));
              _app.Sharepoint.ExecuteQuery();
  
              return ConvertToDictionary(collection.GetById(itemId));
          }
  
          private Dictionary&lt;string, object&gt; ConvertToDictionary(ListItem item)
          {
              var dic = new Dictionary&lt;string, object&gt;();
              foreach (var pair in item.FieldValuesAsText.FieldValues)
              {
                  dic.Add(pair.Key, pair.Value);
              }
  
              return dic;
          }
  </code></pre>