title: Accessing data in `RetrieveMultiple`
body: <p>I'm fetching <code>Contact</code>and <code>Account</code> entities and I wish to access the name of the contact and the name of the primary contact. While the first one is accessed very easily by</p>
  
  <pre><code>EntityCollection result = proxy.RetrieveMultiple(...);
  Entity entity = result.Entities[0].Attributes["fullname"];
  </code></pre>
  
  <p>the other seems to fight me throwing an exception. As far I can see, it depends on the fetch XML that has attributes for the name directly in <code>&lt;entity&gt;</code> in the former case and under <code>&lt;entity&gt;&lt;link-entity&gt;</code> in the latter.</p>
  
  <p>How can I access the field <code>fullname</code> that is a linked entity?</p>
  
  <hr>
  
  <p>Fetch XML for contacts:</p>
  
  <pre><code>&lt;fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'&gt;
    &lt;entity name='contact'&gt;
      &lt;attribute name='fullname' /&gt;
    &lt;/entity&gt;
  &lt;/fetch&gt;
  </code></pre>
  
  <p>Fetch XML for accounts' primary contacts:</p>
  
  <pre><code>&lt;fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'&gt;
    &lt;entity name='account'&gt;
      &lt;attribute name='accountid'/&gt;
      &lt;link-entity name='listmember' from='entityid' to='accountid' visible='false' intersect='true'&gt;
        &lt;link-entity name='list' from='listid' to='listid' alias='ab'&gt;
        &lt;/link-entity&gt;
      &lt;/link-entity&gt;
      &lt;link-entity name='contact' from='contactid' to='primarycontactid' visible='false' link-type='outer' alias='...'&gt;
        &lt;attribute name='fullname'/&gt;
      &lt;/link-entity&gt;
    &lt;/entity&gt;
  &lt;/fetch&gt;
  </code></pre>