Skip to main content
Community site session details

Community site session details

Session Id : 3UAZKKMnHvQukEjjdzDBq/
Power Automate - Building Flows
Answered

Load data from CSV into SQL server?

Like (0) ShareShare
ReportReport
Posted on 17 Dec 2020 16:02:30 by

Is there a way to take a CSV file and load it into SQL Server?

I want to grab a file in an email attachment and load it into SQL.

The file could also be in a SPO document library.

I'd want to do this as cleanly as possible, do those connectors exist?  I didn't see them last time I looked but maybe I just missed them?

  • takolota1 Profile Picture
    4,913 Moderator on 08 May 2022 at 22:17:12
    Re: Load data from CSV into SQL server?

    If anyone wants a comma delimited CSV reader / parser using only the standard actions in Power Automate that can also handle larger files, in-data commas, and in-data line-breaks, then try this template flow:
    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/CSV-to-Dataset/td-p/1508191

     

    You could also try this batch SQL template to more efficiently enter the values in SQL:

    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/SQL-Batch-Create-Read-Update-and-Delete/td-p/1715338

  • Verified answer
    v-litu-msft Profile Picture
    on 18 Dec 2020 at 03:38:26
    Re: Load data from CSV into SQL server?

    Hi @Anonymous,

     

    It is possible, you could use Data operation and expression to process the CSV file, or use third-part connector (Such as Encodian) to convert the CSV to an object, then insert these items in the object into SQL via SQL connector.

    Solved: Read csv file from email attachment and insert/upd... - Power Platform Community (microsoft.com)

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2