- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity.php
- Класс: \CAllCrmActivity
- Вызов: CAllCrmActivity::NotifyMulti
static function NotifyMulti($userId, $schemeTypeID, $count, $tag = '') { if($userId <= 0) { return false; } if($schemeTypeID === CCrmNotifierSchemeType::IncomingEmail) { //This path opens correctly both in the web and in the mobile version $url = '/crm/deal/details/'; $uri = new Uri($url); $absoluteUrl = $uri->toAbsolute()->getLocator(); if ($tag == '') { $tag = sprintf('crm_email_%s', md5($url)); } $messageTemplate = getMessage( 'CRM_ACTIVITY_NOTIFY_MESSAGE_INCOMING_MULTI', [ '#COUNT#' => $count, ], ); return CCrmNotifier::Notify( $userId, str_replace( '#VIEW_URL#', $url, $messageTemplate ), str_replace( '#VIEW_URL#', $absoluteUrl, $messageTemplate ), $schemeTypeID, $tag ); } return false; }