• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/exclusion/store.php
  • Класс: Bitrix\Crm\Exclusion\Store
  • Вызов: Store::has
static function has($typeId, $code)
{
	$result = ExclusionTable::getRow([
		'select' => ['ID'],
		'filter' => [
			'=TYPE_ID' => $typeId,
			'=CODE' => Communication\Normalizer::normalize($code, $typeId)
		]
	]);

	return $result !== null;
}