cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

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
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors