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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Power BI Automation Tools

Hi everyone, 

 

I would like to know if it is possible with the Power BI Automation Tools extension to change the data source of a report from one workspace to another?

 

And if we can deploy a dataflow from one workspace to another?

 

Of course automatically !

 

Thanks in advance

 

Charline

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

I think you can achieve the above needs through rest api.
For example, first call the following command via the rest api to get the dataflow information corresponding to the currently created dataflow. Then create a new dataflow based on this dataflow in a new workspace.

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows/{dataflowId}/datasources

vhenrykmstf_0-1644459447285.png

The same is true for finding the data source corresponding to a report and then creating the report in another workspace.  

related link:Reports - Get Reports - REST API (Power BI Power BI REST APIs) | Microsoft Docs


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

I think you can achieve the above needs through rest api.
For example, first call the following command via the rest api to get the dataflow information corresponding to the currently created dataflow. Then create a new dataflow based on this dataflow in a new workspace.

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows/{dataflowId}/datasources

vhenrykmstf_0-1644459447285.png

The same is true for finding the data source corresponding to a report and then creating the report in another workspace.  

related link:Reports - Get Reports - REST API (Power BI Power BI REST APIs) | Microsoft Docs


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

GilbertQ
Super User
Super User

Hi @Anonymous 

 

This can be done by updating the data sources using the Power BI REST APIs 

 

Datasets - Update Datasources In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs

 

Then you could download the PBIX (If you can) and then upload it to the new App Workspace with the additional APIs which you can find in the link above.

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors