If you want to assign each column to a variable you don’t use Output Data Table.
You also don’t need to assign the columns to a variable. You can just reference the data directly. Can you give more detail about what exactly you’re trying to do?
I am trying to assign each column to a variable then use a read range activity and use that variable to navigate to a sheet in a file - but I am having issues with getting the column names
The data table is one row and multiple columns
Please could you explain how I would reference the data directly
The same way you do it in an Assign. If you’re using For Each Row in Data Table then you reference the value with CurrentRow(“column name”).ToString
Are you saying the one row in the spreadsheet has a different sheet name in each column?
That’s not really a good way to do it. It’s better to have one column and multiple rows (one row for each sheet name). Then you Read Range the Excel file into a datatable, and use For Each Row in Data Table to loop through the sheet names.
I want to assign a variable for each row of a data table so that I later on in the flow use the variable in a read range activity to navigate to a specific sheet in a file
I have used a generate data table activity to get the data table to be one column as @postwick suggested and am getting this :
[Column 1
[
a_a
“,”
b_b
“,”
]
]
I would like to remove the ‘Column 1’ and the “,” from the data table (using a filter data table activity I am guessing) so that I can then assign each row to a variable - how would I configure the filter to achieve this?