cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alexbjorlig Helper I
Helper I

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 2
JirkaZ Resolver III
Resolver III

Re: What REST API's should I use to copy a report with dataset from one workspace to another?

@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 GroupRebind Report In Group

Highlighted
alexbjorlig Helper I
Helper I

Re: What REST API's should I use to copy a report with dataset from one workspace to another?

Thanks for helping out. Presented last year? I'm new to the powerbi dev cycle - when should we expect this to be released?

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We've launched a how-to forum where you can learn about how Power BI integrates with other Power Platform products.