Dear Team,
I have sheet with same column names, due to this i have to read the column by number or index, Please let me kow how to do it.
and i have to apply for each row for the column.
Thanks,
Amol
Dear Team,
I have sheet with same column names, due to this i have to read the column by number or index, Please let me kow how to do it.
and i have to apply for each row for the column.
Thanks,
Amol
Inside the For Each Row activity, you can access the values of each column by their index using the item variable. For example, row(0) corresponds to the first column, row(1) corresponds to the second column, and so on.
Hey @Amol_Golhar
DataTable.DataTable.row.Item(columnIndex) where columnIndex is the zero-based index of your target column.To read a column by index when there are duplicate column names in a DataTable, you can use the following approach :
row.Item(0).ToString would access the first column.Here’s a snippet of how to use it in an ‘Assign’ activity inside the loop:
currentValue = row.Item(columnIndex).ToString
Replace columnIndex with the zero-based index of the column you want to access.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.