title: Retrieving all resources for a given ServiceAppointment with Odata
body: <p><strong>Given a specific activity, let's say it is the ServiceAppointment, how do we retrieve all the resources associated to it?</strong></p>
  
  <p>I know that the <a href="https://msdn.microsoft.com/en-us/library/gg328549(v=crm.5).aspx" rel="nofollow noreferrer">ActivityPartySet</a> stores the relationships between the activity and the partyid. </p>
  
  <p>Every <em>ServiceAppointment</em> may have 1 or more resources. Each resource has a partyid. </p>
  
  <p>Is it possible to use <a href="https://msdn.microsoft.com/en-us/library/gg309461(v=crm.5).aspx" rel="nofollow noreferrer">odata (OrganizationData.svc)</a> in order to retrieve all the resources for a specific ServiceAppointmnet?</p>
  
  <p>I have tried to use the <a href="https://crm2011odatatool.codeplex.com/" rel="nofollow noreferrer">odata query designer</a> in order to generate the query and was not succesful.</p>
  
  <p><strong>How do you retrieve all the resources for a specified activity using odata?</strong></p>