Tuesday, 15 July 2014

api - Soap SugarCRM Relationship between Leads and Calls -



api - Soap SugarCRM Relationship between Leads and Calls -

i create relationship in soap call, add together existing phone call lead.

i'm using code , error:

$rel_leacon = array( 'session' => $session_id, 'module_name' => 'leads', 'module_id' => $lead_id, 'link_field_name' => 'calls', 'related_ids' => array($call_id), //'name_value_list' => array(), 'delete' => 0 ); // set product bundles products relationship $rel_result = $client->call('set_relationship', $rel_leacon); echo "create relationship result<br />"; echo "<pre>"; print_r($rel_result); echo "</pre>";

any idea?

the link name should in lowercase.

change:

'link_field_name' => 'calls',

to:

'link_field_name' => 'calls',

api soap sugarcrm nusoap

No comments:

Post a Comment