• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sharing/crm/activitymanager.php
  • Класс: BitrixCalendarSharingCrmActivityManager
  • Вызов: ActivityManager::getSettings
private function getSettings(): array
{
	$result = [];

	if ($this->link->getContactType() && $this->link->getContactId())
	{
		$result = [
			'CONTACT_TYPE_ID' => $this->link->getContactType(),
			'CONTACT_ID' => $this->link->getContactId(),
		];
	}
	elseif ($this->guestName)
	{
		$result = [
			'GUEST_NAME' => $this->guestName,
		];
	}

	$result['LINK_ID'] = $this->link->getId();

	return $result;
}