/** * @return \Bitrix\Sender\ConnectorResult */ public function getRecipientResult() { $result = parent::getRecipientResult(); if (!$this->connector) { return $result; } $personalizeList = array(); $connectorPersonalizeList = $this->connector->getPersonalizeList(); foreach ($connectorPersonalizeList as $tag) { if (strlen($tag['CODE']) > 0) { $personalizeList[] = $tag['CODE']; } } $result->setFilterFields(array_merge($result->getFilterFields(), $personalizeList)); return $result; }