• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/controller/type.php
  • Класс: BitrixRpaControllerType
  • Вызов: Type::addAction
public function addAction(array $fields, string $eventId = ''): ?array
{
	if(Driver::getInstance()->getBitrix24Manager()->isCreateTypeRestricted())
	{
		$this->addError(new Error(Loc::getMessage('RPA_LIMIT_CREATE_TYPE_ERROR')));

		return null;
	}
	$fields['name'] = TypeTable::generateName();
	$type = new BitrixRpaModelType();
	return $this->updateAction($type, $fields, $eventId);
}