Data Record Loop Index
Last updated
Last updated
Data Record Loop Index
is an that provides the index of the current iteration of the block, when used inside the Tasks . The output is of type and is compatible with of type or of type .
Here is a summary of the above example:
The Data Record Loop Index
block is used to get the current iteration index.
NOTE: This block will provide valid values when used inside the Tasks of the block.
NOTE: Please refer to the prerequisite information shown before seeing the example.
The image below shows an example of the Data Record Loop Index
block. This example incorporates the Usage Example function, as outlined in the on the prerequisite information page mentioned above.
The block is used with the Customers and the dataset name of ds1 are as .
For each iteration inside the Tasks , we use the block to log the current iteration index combined with the customer's email address by accessing the EmailAddress field of each record.
To access information about the record, we use the block.
The result for the above example can be seen in the , and a sample is shown below (Note the index):