• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/utm.php
  • Класс: Bitrix\Crm\UtmTable
  • Вызов: UtmTable::getEntityUtm
static function getEntityUtm(int $entityTypeId, int $entityId): array
{
	$dbResult = static::getList([
		'filter' => [
			'=ENTITY_TYPE_ID' => $entityTypeId,
			'=ENTITY_ID' => $entityId,
		]
	]);

	$utm = [];
	while ($row = $dbResult->fetch())
	{
		$utm[$row['CODE']] = $row['VALUE'];
	}

	return $utm;
}