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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Updating an Excel Onli...
Power Automate
Answered

Updating an Excel Online document from SQL Server

(0) ShareShare
ReportReport
Posted on by

Hi everyone, 

I am completely stumped at how to accomplish the following, and I hope I can get some insight here: 

Objective: 
- I have an Excel Online document that is a current copy of an SQL Server database report export. 

- Every night the SQL database updates its' report to include new records from that day

- I need to be able to schedule a flow that checks for new records in the SQL database and updates the Excel document with just the new rows. 

 

Issues: 
- My experience with Power Automate is decidedly limited and so far all I've managed to accomplish is getting the flow to constantly add the entire database to the document in a loop - which inflates the filesize in an absurd way and ultimately fails

- I had originally intended to simply connect the database to the Excel file and leave it to refresh within Excel Online, but alas, it isn't supported. 

- I also had another idea to pull the table into Power BI, and then push that out to an Excel export into Sharepoint/Onedrive, but doing that on a schedule appears to be another flow that I am not familiar enough to build. 

 

I realize I'm asking a lot as far as info/guidance goes with this, but is a total blocker for a larger project until I can solve for it. I need to be able to have an XLSX in Excel Online for other workplace functions to read from, which has been a challenge. 

 

Any assistance anyone might be able to offer here would be immensely appreciated!


Categories:
I have the same question (0)
  • Verified answer
    lbendlin Profile Picture
    8,677 Super User 2026 Season 1 on at
    so far all I've managed to accomplish is getting the flow to constantly add the entire database to the document in a loop 

    as part of your loop, empty the table in Excel before you  load the database query into it.

  • jnpb Profile Picture
    on at

    I don't want to have it adding in a loop though - that is definitely not my goal!
    I just want the new data from the db table to be added as new rows in the existing excel file. 

     

  • lbendlin Profile Picture
    8,677 Super User 2026 Season 1 on at

    How do you define "new" - by timestamp? By row ID?

  • takolota1 Profile Picture
    4,980 Moderator on at

    @jnpb @lbendlin 

     

    It’s a little much for a beginner, but if you have access to Office Scripts in your environment, then you could try these templates for upsert & delete…

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

     

    Delete: https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Excel-Batch-Delete/m-p/1634375#M735

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 456

#3
11manish Profile Picture

11manish 352

Last 30 days Overall leaderboard