Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Store rows from CSV attachment to postgres table

(0) ShareShare
ReportReport
Posted on by 11

Hello All,

 

I am new to this so finding it difficult. I have the basics figured out but don't know how to put it together.

 

I get a CSV report everyday and I want to take all the rows and insert them into the table in a postgres DB in GCP. I have created a table from csv file, I have connection to the table is working but I am not able to figure out how to load individual row of CSV data table to a row in postgres table.

Moonking_0-1665699813769.png

 

Please ignore "Create File" as that is just to keep a copy on one drive.

Moonking_1-1665699856439.png

 

Seems like Insert Row requires data, but how do I extract data for individual column from the CSV table row?

Moonking_2-1665699909458.png

 

 

  • Verified answer
    v-chengfen-msft Profile Picture
    on at
    Re: Store rows from CSV attachment to postgres table

    Hi @Moonking ,
    The CSV file is a comma-separated values file
    Line breaks separate rows and commas separate columns

    Here is a test for your reference:

    Here is CSV file:

    vchengfenmsft_5-1665993606780.png

     

    Here is test:

    Put data lines into an array by line breaks, then turning [,] into [; ]

     

    vchengfenmsft_0-1665993593594.png

    vchengfenmsft_1-1665993593604.png

     

    Note:

    Parse JSON needs to get the schema:

    1.You need to test it first to get Select's Body

    vchengfenmsft_2-1665993593611.png

     

    2.Put Select's Body in

    vchengfenmsft_3-1665993593621.png

     

     

    Finally

    Here is result :

    You can load a single row from a CSV data table into a row in a postgres table.

    vchengfenmsft_4-1665993593626.png

     

     

     

    Here is a link for you reference:

    Parse CSV File Using Power Automate (c-sharpcorner.com)

    Best Regards

    Cheng Feng

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow