• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/search/result/factory.php
  • Класс: Bitrix\Crm\Search\Result\Factory
  • Вызов: Factory::getSupportedEntityTypeIds
static function getSupportedEntityTypeIds()
{
	$supportedTypes = [
		\CCrmOwnerType::Lead,
		\CCrmOwnerType::Deal,
		\CCrmOwnerType::Contact,
		\CCrmOwnerType::Company,
		\CCrmOwnerType::Invoice,
		\CCrmOwnerType::Quote,
		\CCrmOwnerType::SmartInvoice,
	];

	$dynamicTypesMap = Container::getInstance()->getDynamicTypesMap()->load([
		'isLoadStages' => false,
		'isLoadCategories' => false,
	]);

	foreach ($dynamicTypesMap->getTypes() as $type)
	{
		$supportedTypes[] = $type->getEntityTypeId();
	}

	return $supportedTypes;
}