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 / Refreshing Excel File ...
Power Automate
Unanswered

Refreshing Excel File from SharePoint

(0) ShareShare
ReportReport
Posted on by 6

Good day,

I haven't had any luck finding a solution for my flow design searching the forums (or Google/YouTube either). Simply, I need a flow to refresh my Excel file and email a copy of it. I'd like to set this up on a scheduled refresh.

  • Excel file is stored in a SharePoint document library
  • Excel File has connections to SQL Server database for the refreshed data 

Flow: Go to SharePoint > Open Excel file > Refresh > Save/Close > email a copy to list of employee's

 

Thank you,

Mark

 

 

Categories:
I have the same question (0)
  • rrovira Profile Picture
    Microsoft Employee on at

    Hello, @Mark_Ball!

     

    You could set up a recurrence so the flow triggers on a schedule. I would use the SQL Server Connector (doc. here: SQL Server - Connectors | Microsoft Docs) which has the Get Rows action. Now, if you Excel already has the data from the SQL Server within, then you could skip this step.

     

    I think the Excel would be automatically updated, so I don't think you would have to open it and refresh it unless you need to update the information contained inside (if I'm wrong, please let know!) You could use the Copy File action if you need a copy of your Excel, but if not, you can proceed by sending email. 

     

    I would suggest perhaps using the Get File by Path and then using the Send Email (V2) and adding the dynamic content obtain by the fist action as the attachment. Inside the "to" field, you add the list of employees. 

     

    Let me know if that helped you get an idea! 

     

    Cheers,

    Rodrigo

  • Mark_Ball Profile Picture
    6 on at

    Thank you for your reply Rodrigo!
    The data i am pulling from SQL is Open Order transactional data that updates daily through the night. New orders are created each day, and some orders are invoiced (removed from the table). I have Power Query steps built into the Excel file to segment by region, clean up columns as well as add custom columns etc. Therefore, the Excel file needs to be refreshed pulling in the entire table, replacing all rows with new.


    Currently, I use Power Update on a virtual machine to perform this task. But i find this tool very error prone, and I don't get specific reasons for the failure. I use Power Automate (and PAD) to perform other tasks and like how you know exactly where a failure happens (and generally, only need to fix it once). Which is why i want to move away from Power Update. With Excel and PA both being Microsoft products, I thought they'd easily work together for my scenario.


    Is there a way for PA to refresh an existing Excel file?


    Thanks,
    Mark

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard