Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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

  • 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

    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.

2 Replies

  • v-henryk-mstf's avatar
    v-henryk-mstf
    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

    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.