• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/integration/service/scenarios/dealadd.php
  • Класс: BitrixSaleExchangeIntegrationServiceScenariosDealAdd
  • Вызов: DealAdd::getDestinationEntityId
protected function getDestinationEntityId(UserContainerItem $item)
{
	$client = static::resolveClient($item->getEntity()->getType());
	$relation = static::loadRelation($item->getEntity()->getId(), $client->getSrcEntityTypeId(), $client->getDstEntityTypeId());

	return ($relation instanceof Relation) ? $relation->getDestinationEntityId():0;
}