DocumentManager.<Document name>.FindByAttribute

Syntax:

FindByAttribute(<AttributeName>, <AttributeValue>)

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.

Returned value:

Type: DocumentRef.
Reference to document found. If there are no documents with the necessary attribute, an empty string will be returned.

Description:

Searches for a document by attribute.

Availability:

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

Note:

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

    

1C:Enterprise Developer's Community