I have a for each activity that executes 9 different queries and writes to a csv. Currently, each query writes to a datatable and the datatable writes to the same csv file by overwriting the data. For each query, I need the datatable to be written to a separate csv file.
Buddy @CScruggs
once you get the datatable from query activities
kindly do the following buddy
inside the for each loop once after running the query and getting the output, use a write csv file with this type of file name “filepath”+now.ToString(“hh_mm_tt”)+“.csv” like this buddy
this would create new csv file everytime with time stamp so that it would get created in different csv files
Try and let know whether this works or not buddy
Cheers @CScruggs
yes buddy @CScruggs instead of now.tostring you can use a counter of default value as 1 in a assign activity and increment it once after the query gets executed like this
My god…hehe…my network is this bad…i entered the previous comment 10 mins before but showing now only…
Alright…
Cheers buddy @devKarthikeyanR
Keep going… @CScruggs
yes, that’s not what I am wanting to do. I just want to be able to give each .csv file a specific name when it is being written, so I know which datatable is which because each has a different set of data.