Zoho Crm API2 Created_By和Modifed_BY未根据请求进行更新

时间:2019-03-02 15:30:36

标签: php crm zoho

我尝试将记录添加到线索中,并且工作正常,但是插入的记录未更新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",

1 个答案:

答案 0 :(得分:0)

这不是正确的尝试。created_by和modified_by 无法更新