ChartOfAccountsManager.<Chart of accounts name>.FindByAttribute

Syntax:

FindByAttribute(<AttributeName>, <AttributeValue>, <Parent>)

Parameters:

<AttributeName> (required)

Type: String.
The name of the attribute by value of which the search is to be formed, as specified in the Designer. The type of value is any, except for ValueStorage and lines of any length.

<AttributeValue> (required)

Type: Arbitrary.
The attribute value by which the search is to be performed.

<Parent> (optional)

Type: ChartOfAccountsRef.
Parent to be searched. If not specified, then performed in all accounts.

Returned value:

Type: ChartOfAccountsRef.
Reference to the found account item. If there are no elements with the required attribute value, an empty reference will be returned.

Description:

Searches for an item by attribute value.

Availability:

Server, thick client, external connection.

Note:

If there are several items with the specified attribute value, only one of them is found.
For attributes of the String type the search is executed by exact mapping.

    

1C:Enterprise Developer's Community