title: List Entity Relationships in Dynamics CRM 2013/2015
body: <p>Is it possible to return a list of relationships on a particular type of entity (not an individual record) using the CRM/XRM SDK?</p>
  
  <p>For example, if I have an entity called "Case" and I need to see if it has a relationship with "MyCustomEntity" is it possible to query the schema of the "Case" entity in CRM and find a list of relationships, checking for one relating to "MyCustomEntity". Similar to expanding the "1:N Relationships" tab in Customisations.</p>
  
  <p>I Have found this article <a href="https://msdn.microsoft.com/en-us/library/gg509021.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/gg509021.aspx</a> which explains creating a new relationship, but nowhere to say "These are the relationships that X has"</p>