title: How to link two records with JavaScript and a n:m relationship
body: <p>I have a many-to-many relationship between two entities. I know <a href="http://en.wikipedia.org/wiki/Microsoft_Dynamics_CRM" rel="nofollow">Dynamics CRM</a> creates an intersect table for that in the database. And I know how I can retrieve records with a fetch command from that auto created entity. </p>
  
  <p>But now I want to dynamically add new records to that table using JavaScript. Is this possible? </p>
  
  <p>I've tried to create a new record for this type, but then I got the following error.</p>
  
  <blockquote>
    <p>The create method does not support entities of type ["relationship_entity_name"].</p>
  </blockquote>