Расширение функционала Bitrix 24/Список сделок
(перенаправлено с «Bitrix 24/Список сделок»)
- CCrmContact::GetList - Контакты
- CCrmCompany::GetList - Компании
- CCrmLead::GetList - Лиды
- CCrmDeal::GetList - Сделки
FrameWork API
правитьif (\Bitrix\Main\Loader::includeModule('crm'))
{
// код
}
$dbDocumentList = CCrmDeal::GetList(array(), array('ID' => $arDocumentID['ID'], "CHECK_PERMISSIONS" => "N"), array('ID'));
// https://bxapi.ru/src/?module_id=crm&name=CCrmDeal::GetList
CCrmDeal :: GetList($arOrder = Array('DATE_CREATE' => 'DESC'), $arFilter = Array(), $arSelect = Array(), $nPageTop = false)
$res = CCrmDeal::GetList(array(), array("UF_CRM_1385538384" => cptools::FormatPhoneNumber($arRes["MESSAGEFIELDS"]["COMMAND_PARAMS"]), "CHECK_PERMISSIONS" => "N"), array("ID","NAME", "TITLE", "DATE_CREATE", "STAGE_ID", "ASSIGNED_BY", "UF_CRM_566BD63BDD6BE"));
while($ob = $res->Fetch()){
CCrmDeal :: GetListEx($arOrder = array(), $arFilter = array(), $arGroupBy = false, $arNavStartParams = false, $arSelectFields = array(), $arOptions = array())
$dbResult = \CCrmDeal::GetListEx(array(), array('=ID' => $this->srcEntityID, 'CHECK_PERMISSIONS' => 'N'), false, false, array('*', 'UF_*'));
$result = $dbResult->Fetch();
REST
правитьМетод crm_deal_list
$arParams = array("order" => array("STAGE_ID" => "ASC"),
"filter" => array(">PROBABILITY" => '1'),
// "select" => array( "ID", "TITLE", "STAGE_ID", "PROBABILITY", "OPPORTUNITY", "CURRENCY_ID" ),
);
$rDeals = executeREST($arAccessParams['client_endpoint'], 'crm.deal.list', arParams,
$arAccessParams['access_token']);