• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/calendar/notification/notificationservice.php
  • Класс: Bitrix\Crm\Integration\Calendar\Notification\NotificationService
  • Вызов: NotificationService::sendCrmSharingCancelled
public function sendCrmSharingCancelled(): bool
{
	$manager = Sharing\Helper::getOwnerInfo($this->crmDealLink->getOwnerId());
	$template = self::TEMPLATE_SHARING_EVENT_CANCELLED;
	$placeholders = [
		'NAME' => Sharing\Helper::getPersonFullNameLoc($manager['name'], $manager['lastName']),
		'DATE' => Sharing\Helper::formatDate($this->event->getStart()),
		'EVENT_URL' => Sharing\Helper::getShortUrl($this->eventLink->getUrl()),
	];

	if ($this->crmDealLink->isActive())
	{
		$template = self::TEMPLATE_SHARING_EVENT_CANCELLED_LINK_ACTIVE;
		$placeholders['URL'] = Sharing\Helper::getShortUrl($this->crmDealLink->getUrl());
	}

	return $this->sendMessage($template, $placeholders);
}