Salesforce

TaskInstance (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

TaskInstance (Magic xpa 4.x)

Returns the current instance of the task, which is a unique number per this instance.

Every time a task is called, it will receive a new instance number.

Syntax:

TaskInstance (generation)

Parameters:

generation – A number that represents the task's hierarchic position in the runtime task tree. 0 represents the current task, 1 its immediate ancestor, and so on.

Returns:

Numeric containing the Task instance. If the task generation does not exist, the function will return NULL.

Note:

For Online and non-Offline Rich Client programs, a different task instance is returned each time the program is called. For Offline programs, each new task is run in a new process, which starts a new task count.

See also:

TaskID

The Online and Rich Client Samples projects (program TF09 and RTF09)

Since version: 1.9

Reference
Attachment 
Attachment