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 / Anyone know of a way o...
Power Automate
Suggested Answer

Anyone know of a way of setting up a simple data refresh in excel online

(1) ShareShare
ReportReport
Posted on by 2
My business uses BI semantic models, so to access the data in excel I have a data connection that pulls data directly from the semantic model into Excel. The model is refreshed every morning, so currently I need to go into all my excel sheets refresh the connection using data refresh.
 
I've tried to create a power automate that refresh my data connection on a daily basis with no luck. Such a simple thing to do manually, open the file click data refresh, any ideas?
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    12,970 Super User 2025 Season 2 on at
    Try this, which you could use in a scheduled flow:
    1. Create an Office script to refresh the data in the spreadsheet. Be sure to save the script as an osts file in your OneDrive.
      1. The default folder for this is Documents/Office Scripts
    2. Use the action Run script from SharePoint library to choose the workbook and script.
    You will need to check to make sure the data really refreshed, but I got no errors with this method.  
     
    Here is the script:
    function main(workbook: ExcelScript.Workbook) {
    	// Refresh all data connections
    	workbook.refreshAllDataConnections();
    }
     

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard