我尝试将记录添加到线索中,并且工作正常,但是插入的记录未更新created_by和Modifyed_by名称。
$bulkStatus = ZohoCrm::addLeadsRecord([
'Email' => $model->email,
'First_Name' => $model->full_name,
'Description' => $model->message,
'Phone' => $model->phone,
'Country' => $model->country,
'Last_Name' => $model->full_name,
'Created_By' => ["name" => "Hadi", "id" => "xxxxxxxxxxxxxxxxxx"],
'Modified_By' => ["name" => "Hadi", "id" => "xxxxxxxxxxxxxxxxxx"],
'$gclid' => isset($_POST['zc_gad']) ? $_POST['zc_gad'] : 'Undefined!',
"Owner" => [
"id" => "xxxxxxxxxxxxxxxxxx",
"name" => "Hadi"
],
"Lookup" => [
"id" => "xxxxxxxxxxxxxxxxxx",
"name" => "Hadi"
],
注意:我也尝试过,但也不能正常工作
'Created_By' => "xxxxxxxxxxxxxxxxxx",
'Modified_By' => "xxxxxxxxxxxxxxxxxx",
答案 0 :(得分:0)
这不是正确的尝试。created_by和modified_by 无法更新。