Salesforce

Counter (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Counter (Magic xpa 3.x)

Counts the number of iterations at a record level performed by a Batch task or a Rich Client non-interactive task.

Syntax:

Counter(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:

Number

Example:

Placed as an End Task condition, the expression Counter(0)=5 ends the current task (task 0) after five iterations on the record level.

See also:

How Do I Retrieve the Sequential Number of a Record that Is Handled by a Batch Program?

The Online and Rich Client Samples projects (program LG08 and RLG08)

Reference
Attachment 
Attachment