Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
alexbjorlig
Helper IV
Helper IV

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

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors