• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/item/fieldimplementation/multifield.php
  • Класс: Bitrix\Crm\Item\FieldImplementation\Multifield
  • Вызов: Multifield::setFromExternalValues
public function setFromExternalValues(array $externalValues): void
{
	$commonFieldName = $this->getHandledFieldNames()[0];

	$externalValue = $externalValues[$commonFieldName] ?? null;
	if (!is_null($externalValue))
	{
		$current = $this->get($commonFieldName);

		Assembler::updateCollectionByArray($current, (array)$externalValue);

		$this->set($commonFieldName, $current);
	}
}