php bitrix-php crm领先
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php bitrix-php crm领先相关的知识,希望对你有一定的参考价值。
<?php
/**
* Lead
*/
$obB24Lead = new \Bitrix24\Crm\Lead();
//get a lead
$lead = $obB24Lead->get($leadId)
//Get list of lead items
$order = ["STATUS_ID"=> "ASC" ];
$filter = [
">OPPORTUNITY"=> 0,
"!STATUS_ID"=> "CONVERTED" ,
//Find lead by phone number
"PHONE": "555888"
];
$select = [ "ID", "TITLE", "STATUS_ID", "OPPORTUNITY", "CURRENCY_ID" ];
$start=0;
$obB24Lead->getList($order, $filter, $select, $start);
//Add a new lead to CRM
$fields = array(
"TITLE" => $_REQUEST['first_name'].' '.$_REQUEST['last_name'],
"NAME" => $_REQUEST['first_name'],
"LAST_NAME" => $_REQUEST['last_name'],
"STATUS_ID" => "NEW",
"OPENED" => "Y",
"ASSIGNED_BY_ID" => 1,
"PHONE" => array(array("VALUE" => $_REQUEST['phone'], "VALUE_TYPE" => "WORK" )),
"EMAIL" => array(array("VALUE" => $_REQUEST['email'], "VALUE_TYPE" => "WORK" )),
);
$params = array("REGISTER_SONET_EVENT" => "Y");
$obB24Lead->add($fields, $params);
//get list of lead fields
$allfields = $obB24Lead->fields();
//update a lead
$obB24Lead->update($leadId, $fields, $params);
//delete a lead
$obB24Lead->delete($leadId);
以上是关于php bitrix-php crm领先的主要内容,如果未能解决你的问题,请参考以下文章
php bitrix-php crm.company
php bitrix-php crm.deal
php bitrix-php磁盘
php bitrix-php任务
外盘期货平台搭建期货行情软件定制CRM后台管理系统-外盘期货交易软件-易投
什么是CRM客户管理系统软件,企业为什么要实施CRM管理系统软件)?