Sms::fetchActivityByMessageId

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Sms
  4. fetchActivityByMessageId
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/sms.php
  • Класс: Bitrix\Crm\Activity\Provider\Sms
  • Вызов: Sms::fetchActivityByMessageId
static function fetchActivityByMessageId(int $id): array
{
	$activity = CCrmActivity::GetList([], [
		'TYPE_ID' => CCrmActivityType::Provider,
		'PROVIDER_ID' => static::getId(),
		'@PROVIDER_TYPE_ID' => [static::PROVIDER_TYPE_SMS, static::PROVIDER_TYPE_SALESCENTER_PAYMENT_SENT, static::PROVIDER_TYPE_SALESCENTER_DELIVERY],
		'ASSOCIATED_ENTITY_ID' => $id,
		'CHECK_PERMISSIONS' => 'N',
	])->Fetch();

	return is_array($activity) ? $activity : [];
}

Добавить комментарий