Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
edwardrmiles
Helper III
Helper III

Upload Excel workbooks to Workspaces programmatically

Is it possible to upload* Excel workbooks to Workspaces programmatically? I've has a look at the REST API documentation but haven't found anything

 

Basically I'm trying to overcome the problem of not being able to refresh an Excel workbook that uses Power BI as a data source when it has been uploaded to a Workspace (as described here in Chris Webb's blog). My thinking is I could refresh locally and publish to Power BI on a schedule

 

*Upload, not import i.e. the Excel online in Power BI type experience

2 REPLIES 2
v-micsh-msft
Microsoft Employee
Microsoft Employee

Where is the Excel File stored? Does the Excel file need to be replaced with different versions?

Power BI could sync the Excel file directly when the file is stored under OneDrive or OneDrive for Business (Package refresh).

 

But if here you would like to update the Excel file, it is not available through Power BI, or through Power BI Embeded API.

 

You may take a look at Microsoft Flow, to configure schedule update for the Excel files stored in OneDrive.

 

Regards,

Michael

 

 

 

@v-micsh-msft the Excel file will most likely be stored as a local file but could be OneDrive, however it's that automated publish which is important. This is beacuse you cannot refresh an Excel Workbook that has been uploaded to a Workspace.  

 

Automating refresh oustide of Power BI is quite straightforwdard (e.g. using Powershell or VBA) so if I can automate the publish to a Workspace part I can overcome the problem

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.