ConfigurationMetadataObject.FindByType

Syntax:

FindByType(<Type>)

Parameters:

<Type> (required)

Type: Type.
The type that will be used for searching.

Returned value:

Type: MetadataObject: HTTPService, MetadataObject: ExternalDataSource, MetadataObject: Field, MetadataObject: Table, MetadataObject: Function, MetadataObject: HTTPServiceURLTemplate, MetadataObject: DefinedType, MetadataObject: ChartOfCalculationTypes, MetadataObject: ChartOfAccounts, MetadataObject: BusinessProcess, MetadataObject: Document, MetadataObject: DocumentJournal, MetadataObject: Task, MetadataObject: ChartOfCharacteristicTypes, MetadataObject: ExchangePlan, MetadataObject: AccountingRegister, MetadataObject: AccumulationRegister, MetadataObject: CalculationRegister, MetadataObject: InformationRegister, MetadataObject: Catalog, MetadataObject: FunctionalOption, MetadataObject: FunctionalOptionsParameter, MetadataObject: Command, MetadataObject: CommandGroup, MetadataObject: SettingsStorage, MetadataObject: CommonCommand, MetadataObject: WebService, MetadataObject: WSReference, MetadataObject: Interface, MetadataObject: Constant, MetadataObject: FilterCriterion, MetadataObject: DocumentNumerator, MetadataObject: DataProcessor, MetadataObject: CommonPicture, MetadataObject: Template, MetadataObject: CommonModule, MetadataObject: Form, MetadataObject: Style, MetadataObject: Language, MetadataObject: Report, MetadataObject: XDTOPackage, MetadataObject: SessionParameter, MetadataObject: Enum, MetadataObject: EventSubscription, MetadataObject: Subsystem, MetadataObject: Sequence, MetadataObject: ScheduledJob, MetadataObject: Role, MetadataObject: StyleItem, MetadataObject: Graph, MetadataObject: Dimension, MetadataObject: EnumValue, MetadataObject: WebServiceOperation, MetadataObject: Recalculation, MetadataObject: WebServiceParameter, MetadataObject: AccountingFlag, MetadataObject: ExtDimensionAccountingFlag, MetadataObject: Attribute, MetadataObject: TabularSection, MetadataObject: Resource, MetadataObject: AddressingAttribute, MetadataObject: CommonAttribute, MetadataObject: Cube, MetadataObject: DimensionTable; Undefined.
Undefined - metadata object not found.

Description:

Looks for the metadata object responsible for the specified type. For example, it can be used to find the Catalog.Articles metadata object for the Catalog.Articles object.
Configuration metadata objects responsible for application objects define the corresponding set of types. For example, if the Catalog.Currencies metadata object is present in the configuration, then several types are present in the system (CatalogRef.Currencies, CatalogManager.Currencies, CatalogObject.Currencies, CatalogSelection.Currencies, CatalogList.Currencies).

Availability:

Server, thick client, external connection, Mobile application (server).

Note:

This can be used to find metadata objects that define a type in the configuration based on the specified type.

Example:

List = New ValueList;
For 
Nomenclature = 1 to Do
    If Nomenclature <= Account.ExtDimensionTypes.Count() 
            AND 
ValueIsFilled(Account) Then
        ExtDimensionType = Account.ExtDimensionTypes[Nomenclature-1].ExtDimensionType;
        MetaType = Metadata.FindByType(ExtDimensionType.ValueType.Types()[0]);
        Try
            If MetaType.Attributes.Count() > Then
                List.Add(Nomenclature-1, ExtDimensionType.Description,,);
            EndIf
;
        Except
        EndTry; 
    EndIf
;
EndDo
;


    

1C:Enterprise Developer's Community