web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / convert CSV string to ...
Power Automate
Unanswered

convert CSV string to table

(0) ShareShare
ReportReport
Posted on by

Hi,

I have an API wich return a text, suppossed to be a csv file, in the form below :

datetime;mois;semaine;joursem;heure;vacance;Text;freQ;Scored Labels
7/15/2017 6:00:00 PM;7;28;7;18;1;29,234;67;148,2313385
10/14/2016 4:00:00 AM;10;42;6;4;0;18,922;0;-9,692166328
02/04/2017 12:00;2;5;7;12;0;9,239;0;39,99219513
05/11/2017 05:00;5;19;5;5;0;17,421;0;1,262338638
10/01/2016 13:00;10;40;7;13;0;22,333;2;-0,870968521
11/20/2016 6:00:00 AM;11;48;1;6;0;11,83;0;-13,13813114
10/18/2016 4:00:00 PM;10;43;3;16;0;20,529;42;46,49481583
2/23/2018 9:00:00 AM;2;8;6;9;0;1,231;0;1,8540411
01/05/2017 05:00;1;1;5;5;1;6,426;0;0,300328046

I don't need to save a csv file, I need to transform this to a table to save 2 specifc columns on a sharepoint list.

I tried create CSV table but, I can't make it work.

 

Thank you for your help.

 

Categories:
I have the same question (0)
  • tutankh Profile Picture
    73 on at

     

    The short answer is that there is not currently a csv parsing function in Flow.  The somewhat longer answer is that depending on how reliable your csv content is, it may be possible. You'd need to write some loops to create an array of json objects that contain your data... then you could parse through the json more or less normally

    CSV to JSON.png

  • Community Power Platform Member Profile Picture
    on at

    Thanks you for your helps.

     

    Can you give me an exmle of this loop ? le toos an an expemple of the code.

     

    Thank you.

  • Verified answer
    tutankh Profile Picture
    73 on at
  • asmusz Profile Picture
    45 on at

    All the answers on this topic are SOOOO much more complicated than it should be!

     

    We have an Import-CSV command in powershell that takes CSV data and makes an object.... there should be the same thing that works just as easily in MS Flow/Logic apps.  

     

    So frustrated that MS has not yet fixed this.

     

     

  • anton-khrit Profile Picture
    197 on at

    You can use Parse CSV action from Plumsail Documents connector. It allows you to convert CSV into an array and variables for each column. Please read this article demonstrating how it works.

     

    Once you parsed CSV file you can iterate through result array and insert specific column values into SharePoint as you wanted.

  • tutankh Profile Picture
    73 on at

    This would probably work, but I don't think it's reasonable to spend over $300 a year for something that should be a base option.


    @anton-khrit wrote:

    You can use Parse CSV action from Plumsail Documents connector. It allows you to convert CSV into an array and variables for each column. Please read this article demonstrating how it works.

     

    Once you parsed CSV file you can iterate through result array and insert specific column values into SharePoint as you wanted.


     

  • Community Power Platform Member Profile Picture
    on at

    I don't have access to the destination forum but need this solution....Could the solution be completely duplicated here?

  • asmusz Profile Picture
    45 on at

    I still can't believe that Microsoft has not made parsing a CSV part of the basic options/actions available in Power-Automate/Flow.  I've been advocating for this for literally years now.  C'mon MS!! This is a "standard" OOB function in almost all scripting languages, including PowerShell!  This is also one of the oldest and most common "data exchange" formats.

  • Community Power Platform Member Profile Picture
    on at

    Hi,

    I am trying to parse csv to filter it with power automate to distribute the right document to the right person, I am interested by you process, could you share the flow and not the result to really understand what action you are doing within it ?

     

    Thanks !

  • chico Profile Picture
    638 on at

    +1

     

    also curious of the solution but get hit with permission errors when accessing this link

     

    https://powerusers.microsoft.com/t5/Flow-Cookbook/Convert-CSV-data-into-json/m-p/162034#M93

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard