DocumentManager.<Document name>.FindByNumber


FindByNumber(<DocumentNumber>, <IntervalDate>)


<DocumentNumber> (required)

Type: Number; String.
The number of the desired document. The type of value passed depends on the number display setting in the Configuration Manager.

<IntervalDate> (optional)

Type: Date.
Date from the interval being searched by number. The interval itself is defined as the unique period of document numbers containing the indicated date. For example, if document numbers are unique within a month and the date given is December 10, 2001, then the interval from December 1 through 31, 2001 will be searched.
The parameter is used for documents with periodic numbering.

Returned value:

Type: DocumentRef.; Undefined.
Reference to document found. If the document is not found, an empty reference to the document is returned.
If number is not set (length = 0), will be returned Undefined.


Searches for a document by number.


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


1C:Enterprise Developer's Community