Forum Discussion
matvi
7 years agoFrequent Visitor
REST API Usage: Reports - Update Report Content vs Clone vs Import
Hi, I'm writing a program to copy a workspace content to another one using the REST API. I've looked at the tutorial by Sirui Sun, but his example doesn't work if there are already reports in the t...
TedPattison
7 years agoMicrosoft Employee
I wrote a c# console application a while back to clone app workspace content. It is still a work in progress but it will help you get started.
Here is the approach I am using
- Export/import all the PBIX projects you have created with Power BI Desktop. However, you must filter out reports that have been created in the browser or reports that are not paired with a dataset in a single import.
- Clone all dashboards and thier tiles (my code shows how to do this)
- Clone reports that were not cloned by export/import in step #1 (my code does not contain this functionality yet)
Here is the code which you can use as a starting point.