Skip to main content

Notifications

Community site session details

Community site session details

Session Id : OLYTkOTsDDGJZ1zLq1xX0+
Power Automate - Building Flows
Suggested answer

How to Read CSV file using Power Automate?

Like (0) ShareShare
ReportReport
Posted on 13 Dec 2022 12:35:36 by

I have added a CSV file to the SharePoint Documents library.

I need to read that CSV file using Power Automate / Flow. without using any third-party actions.
SS.png

I need to store particular column data to array from CSV and add that array data to the SharePoint list.

Can anyone help me with the same?

Thanks

  • Suggested answer
    Akhil Mehra Profile Picture
    2 on 05 Feb 2025 at 06:54:21
    How to Read CSV file using Power Automate?
    After "Get file content" (SharePoint), then:
    1. Convert CSV to an Array: Use split(replace(outputs('Get_file_content'), '\r\n', '\n'), '\n') to separate rows.
    2. Extract Headers: Use first(outputs('Compose')) to get column names.
    3. Extract Data Rows: Use skip(outputs('Compose'), 1) to remove headers.
    4. Filter Required Column Data: Use "Select" action with split(item(), ',')[ColumnIndex] (replace ColumnIndex with the actual position).
    5. Loop Through Extracted Data: Use "Apply to each" to iterate over values.
    6. Store Data in SharePoint List: Use "Create item" to save each extracted value in the list.
  • fuo Profile Picture
    11 on 21 Jun 2024 at 16:58:44
    Re: How to Read CSV file using Power Automate?

    Yes. The entire "Power" Platform is garbage.

  • Sticks22 Profile Picture
    5 on 28 Nov 2023 at 16:34:52
    Re: How to Read CSV file using Power Automate?

    Opps I just read that a bit better, that's only data to make CSV not read CSV in... Bummer. 

  • Sticks22 Profile Picture
    5 on 28 Nov 2023 at 16:28:55
    Re: How to Read CSV file using Power Automate?

    There has been CSV table support for a while. Not sure how long but here is a link to the docs.

    https://learn.microsoft.com/en-us/power-automate/data-operations#use-the-create-csv-table-action

  • piotrostr Profile Picture
    30 on 06 Sep 2023 at 07:47:38
    Re: How to Read CSV file using Power Automate?

    is there anything in this service which works without applying workarounds?

    id assume paying for premium should be fine, or it needs some additional googling to find out how to make it happen?

     

    This is ridiculous. Complete rubbish.

    How can you not support csv. how this product can be used if you just look for workarounds for the simplest tasks

  • SamLed Profile Picture
    2,332 Moderator on 03 Aug 2023 at 10:15:07
    Re: How to Read CSV file using Power Automate?

    EDIT : answered to the wrong topic... deleted my answer.

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on 13 Dec 2022 at 15:05:00
    Re: How to Read CSV file using Power Automate?

    Hi @BhoomeshJoshi 

    There are no standard connectors to parse CSV files. Therefore you can try to parse the file manually. Have a look at this excellent post by @Paulie78 : Power Automate: How to parse a CSV File to create a JSON array (tachytelic.net)

    Instead of creating a JSON array, you could add a new item into the SharePoint list.

    Hope that helps!
    Ferran

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 87

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard