How to read a .csv file in mulesoft

Hemant picture Hemant · Jan 4, 2016 · Viewed 12.7k times · Source

I am trying to read a csv file in mulesoft, can one tell me how to do that ? How to tell mulesoft which file to read ?

Answer

JoostD picture JoostD · Jan 7, 2016

Everyone is talking about transforming but you are asking how to read.

You will need the File connector, or FTP, SFTP or some SaaS applications maybe.

You can find an example of reading a CSV file with the File connector in Mule here:

https://www.mulesoft.com/exchange#!/importing-csv-into-mongodb

You will specify a path where Mule should poll for files, polling frequency and you can specify a pattern for which files Mule should look with a regex pattern.

https://docs.mulesoft.com/mule-user-guide/v/3.7/file-connector