Forum Discussion
What REST API's should I use to copy a report with dataset from one workspace to another?
I am new to Power BI, and trying to setup everything to work well with power bi embedded. Things are going well, and now I'm designing the dev/prod environments. I have something that looks like this:
DEV workspace
With one dataset and a corresponding report
PROD workspace
No dataset/reports currently
My objective is to write a script that can do the following:
- Copy the report + dataset to PROD
- Change the parameter of the dataset, so it reads from production instead of dev
- Refresh/reload the application
I am currently thinking about using the export/import endpoints, but I am unsure if it's the best solution? My concerns with export/import is:
- Will the production app for a short moment point to the wrong data source (i.e. dev?)
- What happens the second time the script runs? Will the import to production step correctly override the existing application (because then the app will already be there)?
P.S I'm not interested in using anything else than the REST API's (I'm building the script in Node.js)
2 Replies
- JirkaZSolution Specialist
alexbjorlig This is exactly what the Deployment Pipelines will do once released. This feature was announced during the Ignite in Orlando last year. Let's see when's that gonna happen.
Other than that you could use the API calls - Clone Report In Group, Rebind Report In Group
- alexbjorligHelper IV
Thanks for helping out. Presented last year? I'm new to the powerbi dev cycle - when should we expect this to be released?