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 / Flow to append a table...
Power Automate
Unanswered

Flow to append a table into a excel file in sharepoint

(0) ShareShare
ReportReport
Posted on by 14

Currently, I'm have created a flow that can upload the file to SharePoint. The challenge is that I have an excel file, say a.xlsx present in the SharePoint and I have a b.xlsx in my local repository with the same columns but totally different data. When I upload the b.xlsx through Powerapps it should append the b.xlsx into a.xlsx.

 

Is this possible?

 

can some help me from scratch?

 

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

    Hi @DhineshKumar,

     

    Yes, it is possible, you could create a flow to monitor a SharePoint folder. When b.xlsx file is created in the folder, Get its tables + Lists rows action to get all rows. Then use Apply to each action + Add a row into a table to append these rows into a.xlsx file.

    Annotation 2020-07-17 143931.jpg

     

    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.

  • DhineshKumar Profile Picture
    14 on at

    The flow executes successfully but I don't see any rows add in the a.xlsx file. Did I miss something? I have done the exact representation of yours.

     

    for example, I have a production data in monthly order. The file existing in the Sharepoint folder is jan_production.xlsx and when I add the file (i. e) feb_production.xlsx in SharePoint, the table in the feb_production.xlsx must be appended into the jan_production.xlsx.

     

     

  • DhineshKumar Profile Picture
    14 on at

    In the action of adding a row how to get the values of each row. Do I have to use any expression to get the value? if so what is the expression used?. I think is happening due to the first trigger action of getting the properties only

    MS flow (updating_file).JPG

  • Verified answer
    v-litu-msft Profile Picture
    on at

    Hi @DhineshKumar,

     

    After get rows, create an Apply to each action to loop through them, then add Add a row into a table action to add them into the master excel file. 

    The expression should be item()?['columnName'], it means get current column value:

    Annotation 2020-07-21 181744.jpg

     

    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.

  • webbrewer Profile Picture
    338 on at

    The answers above require that a table exists in the excel file, which is often not the case especially with files exported from 3rd party software. If your file has no tables, you can create a table following this guide:

    http://webbrewers.com/microsoft-flow-append-excel-data-to-a-sharepoint-list/

     

  • Community Power Platform Member Profile Picture
    on at

    Hi, 

     

    This works fine for me, but it takes quite a long time (I guess power automate adds row by row). Is there a way of doing something similar, but just append directly a whole table? 

  • takolota1 Profile Picture
    4,974 Moderator on at

    @Anonymous 

    If the data you want to append to the table is less than 16,000 rows, then this template has a batch create action that can do it in a minute.

    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Excel-Batch-Create-Update-and-Upsert/td-p/1624706

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