0

在 bitrix24 CRM 中如何使用 PHP 中的电话号码搜索潜在客户、联系人或公司详细信息,没有任何适当的文档可供参考。

如果有任何机构可以帮助我,真的很感激。

4

1 回答 1

0

以下代码使用新的 Bitrix D7 ORM API 通过电话号码检索潜在客户。

<?php
\Bitrix\Main\Loader::includeModule('crm');

$arLeads = \Bitrix\Crm\LeadTable::getList(array(
    "filter" => array("PHONE_MOBILE" => "+79876543210")
))->fetchAll();

print_r($arLeads);
?>

以下 API 文档中描述了如何使用过滤器:https ://www.bitrixsoft.com/help/index.html?page=source%2Fiblock%2Fhelp%2Fen%2Fdeveloper%2Fclasses%2Fciblockelement%2Fgetlist.php.html

于 2016-10-14T21:41:24.467 回答