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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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