• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/automation/target/contacttarget.php
  • Класс: Bitrix\Crm\Automation\Target\ContactTarget
  • Вызов: ContactTarget::setEntityById
public function setEntityById($id)
{
	$id = (int)$id;
	if ($id > 0)
	{
		$entity = \CCrmContact::GetByID($id, false);
		if ($entity)
		{
			$this->setEntity($entity);
			$this->setDocumentId('CONTACT_' . $id);
		}
	}
}