Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Read contents of CSV email attachment into SQL

HI All. I need some help with reading a CSV email attachment into a SQL database. I get an automated email everyday that gets imported into Power BI. However, for efficiency, I want to use a database to store the data instead of an every growing colleciton of flat files. I can copy the attachment to a sharepoint folder, but I'd rather read the CSV into a database. However, I can't figure out how to get the contents of the attachment into the SQL database table I created. Any help would be appreciated. Thanks.

Super User
Super User

Re: Read contents of CSV email attachment into SQL

Hi @jasonl2019 


In my knowledge there are no standard flow action steps available for reading CSV file.


However there is Plumsail document connector (thirdparty) allows you to convert CSV into an array for each column.


You could try getting the email attachments as an excel document. Excel List rows flow action can read the contents of excel sheet.


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.




Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up

Proud to be a Flownaut!

Community Support Team
Community Support Team

Re: Read contents of CSV email attachment into SQL

Hi @jasonl2019,


Has your problem been solved?
If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

Best Regards,
Community Support Team _ Lin Tu

Helpful resources


Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,505)