DocumentManager.<Document name>.FindByAttribute


FindByAttribute(<AttributeName>, <AttributeValue>)


<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.


Searches for a document by attribute.


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


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