ChartOfAccountsManager.<Chart of accounts name>.FindByCode

Syntax:

FindByCode(<Code>, <Parent>)

Parameters:

<Code> (required)

Type: String.
Search code.

<Parent> (optional)

Type: ChartOfAccountsRef.
Parent to be searched. If this is not specified, entire chart of accounts is searched.

Returned value:

Type: ChartOfAccountsRef.; Undefined.
If there is no item with the specified code, an empty reference is returned.
If code is not set (length = 0), will be returned Undefined.

Description:

Searches for an item by its code.

Availability:

Server, thick client, external connection.

Example:

Parent = ChartsOfAccounts.Main.FindByCode(ParentCode);

    

1C:Enterprise Developer's Community