I have multiple csv file i want to merge all at once

I want to merge all file in highlited file

@Gaurav_Gore

Use read csv and then use append csv option to add the data without headers

you can as well use merge datatable and then write the data all at once

cheers

I don’t want to put hardcode csv file name i just want to put which csv file is received first in folder

@Gaurav_Gore

Path.GetFileName(Directory.Getfiles("Folderpath","*.csv").OrderBy(function(x) file.GetCreationTime(x))(0)) this will give first file…use this in if condition and also in append csv

Cheers

Can u show me the flow

@Gaurav_Gore

The flow is same as above screenshot no change…instead of firstfilename.csv use the above expression

Cheers

Getting Error

@Gaurav_Gore

Please tell what you tried

What activity is throwing wrror and what is yhe error

Cheers

@Gaurav_Gore

Can you please show the expression as well which you used exactly

Cheers

CurrentFile.Name.Equals(Path.GetFileName(Directory.Getfiles(“Folderpath”,“*.csv”).OrderBy(function(x) file.GetCreationTime(x))(0)))

@Gaurav_Gore

Folderpath is replaced with proper path?

Cheers

Its working But first file data save two time i don’t want two time

@Gaurav_Gore

Try eith Path.GetFileNameWithOutExtension

Cheers