You can use the Join data tables activity to join the two datatables.
There is type of joins in Join datatable activity
Inner - Keep all rows from DataTable1 and DataTable2 which meet the Join rule. Any rows that do not meet the rule are removed from the resulting table.
Left - Keep all rows from DataTable1 and only the values from DataTable2 which meet the Join rule. Null values are inserted into the column for the rows from DataTable1 that don’t have a match in the DataTable2 rows.
Full - Keep all rows from DataTable1 and DataTable2, regardless of whether the join condition is met. Null values are added into the rows from both tables that don’t have a match.
Because the values from DataTable1 and DataTable2 do not meet the rule. So I use concatenation type:
Full - Keeps all rows from DataTable1 and DataTable2, regardless of whether the join condition is met or not.
Result as shown below:
I have tried it, it worked.
It creates a sequence of numbers from 0 to the last index of the NameArray array.
The for loop iterates from 0 to the last index of the NameArray array, allowing you to access each element.