• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Operation/Update.php
  • Класс: Bitrix\Crm\Service\Operation\Update
  • Вызов: Update::notifyCounterMonitor
protected function notifyCounterMonitor(): void
{
	$oldFieldsValues = [];
	$newFieldsValues = [];
	foreach ($this->getCounterMonitorSignificantFields() as $commonFieldName => $entityFieldName)
	{
		$oldFieldsValues[$entityFieldName] = $this->itemBeforeSave->remindActual($commonFieldName);
		$newFieldsValues[$entityFieldName] = $this->item->get($commonFieldName);
	}

	\Bitrix\Crm\Counter\Monitor::getInstance()->onEntityUpdate(
		$this->getItem()->getEntityTypeId(),
		$oldFieldsValues,
		$newFieldsValues
	);
}