Hi,
I am using Filter Data Table activity to filter my Excel file. In ‘Column’ field from “filter data table activity” I want to enter my Column name starts with ‘N’… (i.e) “Name”.
Please help me to find out my column name starts with ‘N’ in the Excel File…
I have tried that way. But my problem is how to find out the “column name” starts With ‘N’. Do you know any query to start with ‘N’, and place this query value in the Column Field.
My second Doubt is how should I use That “List” variables inside the Column Field. When I use First or default method it’s type is string, But List value how can I use?
i did not understand your question the result of a where is a list… of Columns and you can work with them. If you want to go through each column you can use for each if you want to get first/last item you just use .last or . first if you want to know how many items it contains you can use .count
In the case you want to get exactly one column just use the same expression used before but change startsWith to .equals(“Name”)
“dtExcel.Columns.Cast(Of DataColumn)().Where(Function(a)
a.ColumnName.StartsWith(“N”)).Select(Function(a) a.ColumnName).ToList()”
From this query, How you are using Functions, How can I learn… Do you have any link for learn this?