TaskRef.<Task name>.GetObject

Syntax:

GetObject()

Returned value:

Type: TaskObject.; Undefined.
Undefined - object is not present in the base (for example, when data exchange is performed or after direct deletion of object, which has references).

Description:

Uses a reference to get an object for modification and task recording.

Availability:

Server, thick client, external connection.

Example:

Query = New Query;
Query.Text = 
"SELECT
|    Ref 
|FROM
|    Task.Task
|
|WHERE
|    Executed <> True"
;
Selection = Query.Execute().Choose();
While 
Selection.Next() Do
    CurTask = Selection.Ref.GetObject();
    // Execute needed actions with the task
EndDo;


    

1C:Enterprise Developer's Community