title: CRM 2011 oData query confusion
body: <p>I am very new to CRM development, i was trying to <a href="http://www.toplinestrategies.com/dotneters/technology/microsoft-crm-2011-odata-examples/?lang=en" rel="nofollow">follow this article</a>, i am a bit confused about below code, please check:</p>
  
  <pre><code>var xp = Xrm.Page;  
  function onLoad(context) {    
    var accountId = xp.data.entity.getId();
  
    var mostRecentQuery = "/XRMServices/2011/organizationData.svc/ContactSet? 
    $select=FullName,JobTitle,EMailAddress1,Telephone1&amp;$top=1&amp;$orderby=CreatedOn
   desc&amp;$filter=ParentCustomerId/Id eq guid'" + accountId + "'"; 
  
  
  
    getContact(mostRecentQuery, "MostRecent");
    ....
    }
  </code></pre>
  
  <p>The above javascript function executes when <strong>AccountForm</strong> is opened. The first line gets the accountId. the next line is oData query. 
  Now check the <strong>ContactSet</strong> in this query, <strong>i am confused here, how we can retrieve the ContactEntity based on the GUID of AccountEntity?</strong></p>