Use your excel application scope part at the very end once you’ve processed ALL values of seq_Id.
Once you do, the entire datatable can be added onto the excel sheet at once.
yes, thats what I used initially. But the thing is we are processing multiple Sequence Id and writing the report in excel.
I am using only one variable(Seq_Id) to store the Sequence Id. So every time BOT process the new Sequence Id it will replace with the latest one. So I need to write the excel in Run time.
Is there any way to append datatable? so I will append rows in data table and finally write the entire table to excel using write range.
@shajanjose Use build datatable activity and create required number of columns to it, use add row activity and add data to datatable in each loop run, at last write that datatable to excel.
Hi,
Step 1:Take build data table have a 2 columns say Sequence id and Status and
name it as Dt
Step 2: Take for each row pass the dt, get 2 get row item name it as sequence
and status as variable name
Step 3: Now take wrtie range activity and pass the Dt
or Use append Activity pass the datatable hopefully it will work
You can add if condition to check if the file exists in that folder. If it does not exist, write activity can be used which will create a file and write the data. If the file exists, use append activity to append the data to the file. Hope this helps.