hi,
Inside a for loop i use data scraping for each link(opening in browser) and append the extracted data in excel using Append Range.
But now i want to eliminate excel dependency. i want to store the appended data in a data table. how can i do this?
Hey, You can use merge datatable.
Make source as ExtractedDatatable and Destination as new datatble using new datatable
HI @arijit1213
For this you can use Merge Datatable Activity
Check below link
Hope this helps
Thanks
@Srini84 @Lakshay_Verma
Hi,
I did this. But as a result i get blank as an output.
Make sure you are not initalising dt everytime and if your headers are same or not make sure you add headers.
Go through this post. You may have find your answer
https://forum.uipath.com/t/how-can-we-use-merge-data-table-activity/107556/3
Hi @arijit1213,
1.Start by creating a master Datatable say dtmaster at the beginning of the workflow , the schema should match your data what we are extracting from the web. The scope of the variable will be global to the sequence.
-
Take a second datatable variable say dttemp that will store the data for each extraction.
-
Inside the for each loop-
A. First assign the dttemp value = Nothing. - This will clear the existing data for every iteration.
B. Now invoke the workflow for extraction of data - This will help to manage the code - this workflow will output a datatable that you will put in variable dtTemp
C. Now use Merge Datatable activity and merge dtTemp into dtMaster.
- After the for each loop , use a write range and write dtMaster to Excel.
–
Mukesh
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.