Data Record ID
Last updated
Last updated
Data Record ID
is an output block that provides the unique record identifier for a record. The output is of type text and is compatible with Value Parameters of type text or of type any.
The block consists of a Value Parameter that specifies an object representing a database record (for which you want the record identifier). The Data Record Info block is pre-attached by default.
NOTE: Please refer to the prerequisite information shown here before seeing the example.
The image below shows an example of the Data Record ID
block. This example incorporates the Usage Example function, as outlined in the Database Reading Logic for examples section on the prerequisite information page mentioned above.
Here is a summary of the above example:
The Data Record Loop block is used with the Customers Database Table and the dataset name of ds1 are as Value Parameters .
For each iteration inside the Tasks Flow Parameter, we use the Write Log Message block to log the current iteration index combined with the record identifier of each record.
The Data Record Loop Index block is used to get the current iteration index.
To access information about the record identifier, we use the Data Record ID
block.
The result for the above example can be seen in the browser's web console, and a sample is shown below: