Php 使用RESTWeb服务使用set_关系方法添加会议和会议联系人关系
我尝试使用rest在创建的会议和分配的联系人之间建立关系,下面是我的代码。。会议已成功插入,但我不知道为什么分配的联系人未保存到meetings\u contacts表中Php 使用RESTWeb服务使用set_关系方法添加会议和会议联系人关系,php,rest,sugarcrm,Php,Rest,Sugarcrm,我尝试使用rest在创建的会议和分配的联系人之间建立关系,下面是我的代码。。会议已成功插入,但我不知道为什么分配的联系人未保存到meetings\u contacts表中 $login_parameters = array( "user_auth"=>array( "user_name"=>'rocks', "password"=>md5('rocks'), "ver
$login_parameters = array(
"user_auth"=>array(
"user_name"=>'rocks',
"password"=>md5('rocks'),
"version"=>"1"
),
"application_name"=>"VanareClient",
"name_value_list"=>array(),
);
$data = call("login", $login_parameters, $url);
$set_contact_parameters = array (
'session' => $data->id,
'module_name' => 'Meetings',
'name_value_list' => array( array (
"name" => "name",
"value" => "Subject"
),
array (
"name" => "description",
"value" => "description"
),
array (
"name" => "location",
"value" => "Pune"
),
array (
"name" => "duration_hours",
"value" =>"1"
),
) );
$dataMeeting = call ( "set_entry", $set_contact_parameters, $url );
$parameters = array(
'session' => $data->id,
'module_name' => 'Meetings',
'module_id' => $dataMeeting->id,
'link_field_name' => 'meetings_contacts',
'related_ids ' => array('25627846-a8a2-eeb5-3565-532035113842'),
);
$dataContactMeetings = call ( "set_relationship", $parameters, $url );
这就是我一直在尝试的。。请帮助我如何将会议和联系人的关系插入meetings\u contacts mysql表。我正在使用Sugarcrm CE 6.5.16版本。尝试使用
'link_field_name' => 'contacts',
由于链接字段名称为“联系人”,因此关系名称为“会议\联系人”