TaskManager.<Task 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: TaskRef.
Reference to the found task. If no task with the specified attribute value exists, empty reference is returned.

Description:

Looks up a task by an attribute.

Availability:

Server, thick client, external connection.

Note:

If several tasks with the specified attribute value exist, only one of them is found.
For attributes of the String type the search is executed by exact mapping.

    

1C:Enterprise Developer's Community