• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/automation/target/itemtarget.php
  • Класс: Bitrix\Crm\Automation\Target\ItemTarget
  • Вызов: ItemTarget::setEntityById
public function setEntityById($entityId)
{
	$entityId = (int)$entityId;
	if ($entityId > 0)
	{
		if (!is_null($this->factory))
		{
			$this->setEntity($this->factory->getItem($entityId));
			$this->setDocumentId(\CCrmOwnerType::ResolveName($this->getEntityTypeId()) . "_" . $entityId);
		}
	}
}