php - how to set_relationship between two module Account and contacts -


public function setrelationship() {     $arr = array(         "session" => $_session['crm_sessionid'],         'set_relationship_value' => array(             "module_`entname" => 'contacts',             "id" => '667c8f2f-0fa7-d62f-350a-515447ae9054',             "module_name" => 'accounts',             "module_id" => 'dd3a6387-e2e4-1ae6-4c37-515931596121'         )     );      $res = $this->client->call('set_relationship', $arr);     print_r($arr);      return $res; } 

you should follow following pattern defining relationship parameters :

public function setrelationship() { $arr= array(   'session'=> $_session['crm_sessionid'],   'set_relationship_value'=>array(   'module1'=>'contacts',                                        //primary module   'module1_id'=>667c8f2f-0fa7-d62f-350a-515447ae9054,           //primary module id   'module2'=>'accounts',                                        //secondary module   'module2_id'=>'dd3a6387-e2e4-1ae6-4c37-515931596121'          //secondary module id   )  );  $res = $client->call('set_relationship', $arr);      return $res; } 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -