BusinessProcessManager.<Business process name>.FindByNumber

Syntax variant: For business processes with non-periodical numbering

Syntax:

FindByNumber(<BusinessProcessNumber>)

Parameters:

<BusinessProcessNumber> (required)

Type: Number; String.
The number of the desired document. The type of value passed depends on the setting of the business process number presentation in the designer.

Description of method variant:

For business processes with through numbering.

Syntax variant: For business processes numbered within a period

Syntax:

FindByNumber(<BusinessProcessNumber>, <IntervalDate>)

Parameters:

<BusinessProcessNumber> (required)

Type: Number; String.
Sought business process number. The type of value passed depends on the setting of the business process number presentation in the designer.

<IntervalDate> (required)

Type: Date.
Date from the interval being searched by number. The interval itself is defined as a period with unique business process numbers including this date. For example, if business process numbers are unique within a month and the date of December 10, 2001 is specified, then the interval from December 01 to 31, 2001 will be searched.

Description of method variant:

For business processes with periodical numbering.

Returned value:

Type: BusinessProcessRef.; Undefined.
Reference to business process if one is found. If a business process is not found, a blank reference is returned.
If number is not set (length = 0), will be returned Undefined.

Description:

Searches for business process by number. Business processes numbered within a defined period are searched for within that period.

Availability:

Server, thick client, external connection.

    

1C:Enterprise Developer's Community