EntityPreset::getByXmlId

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. EntityPreset
  4. getByXmlId
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entitypreset.php
  • Класс: Bitrix\Crm\EntityPreset
  • Вызов: EntityPreset::getByXmlId
static function getByXmlId($xmlId)
{
	$preset = PresetTable::getList([
		'select' => ['ID'],
		'filter' => ['=XML_ID' => $xmlId],
		'cache' => ['ttl' => 3600]
	])->fetch();
	return $preset ? $preset['ID'] : false;
}

Добавить комментарий