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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Kavindu_SE
New Member

How to automate Power BI report publishing using Power Automate or REST API

Hi everyone,

I am trying to automate the publishing of a Power BI report. I have manyPower BI workspaces with the same report structure but different data sources.

The StructureThe Structure

I want to be able to update and publish the report in both workspaces with a single click.

I have tried using Power Automate, but the Publish report action is not yet available. I have also tried using the REST API, but I am having difficulty figuring out how to make the necessary POST request.

Can anyone please provide some guidance on how to automate the publishing of a Power BI report using Power Automate or the REST API? I would greatly appreciate any help you can provide.

Additional details:

    • I am using Power BI Desktop version 2.112.1161.0 64-bit (December 2022)
    • I have tried using the following Power Automate actions to publish the report:

      Use Power Automate HTTP Connector to Publish .pbix File Using the Power BI API – Joel Leichty

        

      but the above solution also not aligned with my problem because the report file (.pbix) needs to be created automatically and we are using different workspaces and datasets(azure sql pools). 

      I am still unable to successfully publish the report using either Power Automate or the REST API. Any help would be greatly appreciated. 

      Thank you in advance for your assistance. 

4 REPLIES 4
PBI_Architect
New Member

I am finding difficulty to form the POST request body to import the pbix file to Power BI service.

I tried all the below options:

multipart/form-data
application/octet-stream
application/json
application/x-www-form-urlencoded

 

i used both fileURL and also the file-content. None works. Not a clue where it is going wrong.

If anyone has already done this, can you please share your sample code or steps?

I have gone thru all those documentation. I tried all those.I can upload directly from sharepoint when the file size less. When the file size > 1GB, i am not able to upload specify the temporary upload location "fileUrl" in the request body. If you have a sucessfull import of large pbix file (>1 GB) to Power BI service using APIs, pls share the code. 

 

lbendlin
Super User
Super User

have also tried using the REST API, but I am having difficulty figuring out how to make the necessary POST request.

That seems to be the most promising approach, it is used by a lot of solution providers to automate the provisioning process. What have you tried and where are you stuck?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors