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 / Import data into an ex...
Power Automate
Unanswered

Import data into an existing Excel table

(0) ShareShare
ReportReport
Posted on by 12

Good morning,

 

I use an Excel table for a Power App.

 

I would need to overwrite the data in the table several times a day, can I do it with Flow?

 

How?

 

Thank you

Valerio

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    on at

    Hi @Valerio,

     

    Do you want to overwrite the data within a Excel table using Microsoft Flow?

    How do you insert data into the existing Excel table?

     

    Overwriting the data within the Excel table is not supported in Microsoft Flow currently, if you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    In addition, you could consider take a try to delete all data within the Excel table firstly, then insert new data into the existing Excel table. I have made a test on my side and please take a try with the following workaround:

    My Original Data within my existing Excel table as below:6.JPG

    Please take a try with the following workaround:

    • Add a proper trigger, here I use Flow Button trigger.
    • Add a "Get rows" action, specify File Name and Table Name.
    • Add a "Apply to each", input parameter set to output of "Get rows" action.
    • Within "Apply to each" action, add a "Delete row" action, specify File Name and Table Name. Row id field set to Row id dynamic content of "Get rows" action.
    • Under "Apply to each", add a "Get items" action, specify Site Address and List Name.
    • Add a "Apply to each 2", input parameter set to output of "Get items" action.
    • Within "Apply to each 2" action, add a "Insert row" action, specify File Name and Table Name.

    Image reference:8.JPG
    9.JPG

    The flow works successfully as below:

    10.JPG

     

    7.JPG

     

     

    Best regards,

    Kris

  • Valerio Profile Picture
    12 on at

    Hi,

     

    I use the excel table with a powerapps.

    I need to overwrite or add lines in this table from a csv file extracted from our management several times a day

     

    Can you suggest me how to do it?

     

    Thanks

    Valerio

     

  • v-xida-msft Profile Picture
    on at

    Hi @Valerio,

     

    Do you want to extract data from a CSV file and add data into an Excel table?

     

    There is no way to analyze a CSV file in Microsoft Flow currently, I afraid that there is no way to achieve your needs in Microsoft Flow currently.

     

    If you would like this feature to be added in Microsoft Flow, please vote the following idea:

    https://powerusers.microsoft.com/t5/Flow-Ideas/Text-CSV-file-get-rows/idi-p/19494

     

    In addition, you could consider take a try to convert the CSV file into a Excel file manually on your side, then format the data of the Excel file as a table. After that, you could retrieve rows from the Excel file using "Get rows" action of Excel connector.

     

    More details about the "Get rows" action of Excel connector, please check the following article:

    The "Get rows" action of Excel connector

     

    Best regards,

    Kris

  • Valerio Profile Picture
    12 on at

    Thanks,

     

    it works, but only for the first 256 rows

     

    it is a limitation?

     

    Thanks

  • J6 Profile Picture
    2 on at

    Hi,

     

    I have follwed the same but getting "Cannot write file to filesource. File is being locked." Error at GetRows itself.

     

    Help me if u have any idea on this.

     

    Thanks you in advance..

     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard