User Bulk Add queue Items and pass the datatable dt
WAY2:
Do the below steps
=> Read Range Workbook
Output → dt
=> Use For Each row in Datatable dt
=> Inside the loop, use Add Queue Items activity ad pass like below.
I know I can add reference through ADD Queue Item But I use BULK ADD Queue Item because sometime it has more then 10 rows and Bulk Queue is easy to use.
Yes it needs to be added to the datatable, now to add to the datatable, there are 2 ways, either you add it directly in the datatable or you add it in the excel file itself which you are reading to save in a datatable as described by @Parvathy.
There can be multiple ways to solve a problem, now what solution one deems as most suited depends on various factors.
Writing new data to the Excel file then reading it back in is redundant. You’re already reading the Excel file, just add the Reference to the datatable.
Just one question more..
I user filter data to filter data from excel and add to datatable only those columns I need.
But one of those columns has a value which i want to modity.
let says it has.. IdentityNr 2578969 .. and I want to change it so that I only take first 4 digit.
How can i change the value of perticular row ?
You could also do that assign within the same For Each Row that you’re using to populate the reference field. Basically the idea is to manipulate the data in the datatable to what you want, before Bulk Add.
As far as filtering and removing columns, you can also do that in the datatable after reading the Excel file. Don’t bother filtering and removing columns in the Excel file itself, just read the whole Excel file then manipulate the data in the datatable, remove columns etc. A good way to remove columns is to use the Filter Data Table activity and on the Output Columns tab set it to Keep and then list the columns you want to keep: