• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/agent/history/leadstatushistorywithsupposed.php
  • Класс: Bitrix\Crm\Agent\History\LeadStatusHistoryWithSupposed
  • Вызов: LeadStatusHistoryWithSupposed::getHistoryCount
private function getHistoryCount()
{
	$result = LeadStatusHistoryTable::query()->addSelect(Query::expr()->count('ID'), 'CNT')->exec()->fetchRaw();

	return $result['CNT'];
}