问题是API 4.1的set_entry方法。包括自定义字段在内的所有内容都存储良好,我创建了一个新的“ Image”类型字段,该字段在suitecrm UI中可以正常工作。但API却没有运气。 我正在使用此代码。
$photo_data = base64_encode( $encoded_data );
$set_entry_parameter = array(
"session" => $_SESSION['session_id'],
"module_name" => "adi_1_Candidate_recruiters",
"name_value_list" => array(
array("name" => "id", "value" => $_SESSION['record_id']),
array("name" => "image_c_record_id", "value" =>
$_SESSION['record_id']),
array("name" => "image_c", "value" => "Candidate photo"),
array("name" => "image_c_file", "value" => $photo_data),
),
);
$crmurl =
'http://localhost/crm_registration/crm_registration1/service/v4/rest.php';
$set_entry_result = call_curl("set_entry", $set_entry_parameter5,
$crmurl,1);