title: Soap SugarCRM Relationship between Leads and Calls
body: <p>I would like to create a relationship in SOAP call, to add an existing call to a lead.</p>
  
  <p>I'm using this code and I get an error:</p>
  
  <pre><code>$rel_leacon = array(
      'session' =&gt; $session_id,
      'module_name' =&gt; 'Leads',
      'module_id' =&gt; $lead_id,
      'link_field_name' =&gt; 'Calls',
      'related_ids' =&gt; array($call_id),
      //'name_value_list' =&gt; array(),
      'delete' =&gt; 0
  );
  
  // set the product bundles products relationship
  $rel_result = $client-&gt;call('set_relationship', $rel_leacon);
  
  echo "Create Relationship Result&lt;br /&gt;";
  echo "&lt;pre&gt;";
  print_r($rel_result); 
  echo "&lt;/pre&gt;";  
  </code></pre>
  
  <p>Any idea?</p>