after watching video of uploading data from Csv to web portal, I noticed that we need to loop the Csv file with “Write line” with expression of “row(“A”).ToString”
however, when I change Csv to Excel, the “Write line” function with same expression is invalid.
may I know if we need to change the expression ?? thanks
in Csv, we are using “Data1” as DataTable, but in excel, we need to use “dttable” as workbook application.
hence, I dunno how to convert workbook application into DataTable, i.e. “dttable” to “Data1”
as such, in “For each row” and “Write line”, I cannot read the excel output from “dttable”. thanks for your help in advance.
By using Read CSV will return the output in datatable but with excel application scope it Opens an Excel Workbook and provides a scope for Excel Activities. When this Activity ends, the Workbook and the Excel application are closed. If a WorkbookApplication variable is provided in the Output > Workbook property field, the spreadsheet is not closed after the activity ends. If the specified file does not exist, a new Excel file is created. This activity can only be used if the Microsoft Excel application is installed on your machine.
to read its data you have to use “Read Range” activity from excel category. This activity will return its output as a datatable.
here you can use Data1 as a datatable same like csv and you have already done that in your workflow sample.
what you are using in writeline share here and are you using it inside for each or outside?
and please make sure to check the “Read Range” activity “Addheaders” property.
would you mind to share UI function on how to read column A data and determine which process to run thru? shall I use “If” or “switch” function? specifically, I will have “A, B, C,D” in column A2,A3,A4 and A5 and if UI read “B”, go to “B recorded process”, and etc.
thanks~
for switch function, may I know if my expression is wrong??
“(string.Contains(“B”))”, then go to B flow
however, wt if I would like to go to A, C, D, E flow, how to write the expression and let “switch” function to go different flow??? thanks~
Hi
I have similar to do but need to create a New column Sr. No in excel that would print serial numbers upto 100. I am not able to get how to print number to excel row by row? Can anyone tell me please?