Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi Guys,
i want to do 2 things using power BI premium per user license (only 1 user and 1 license).
I want to connect with REST API from java and:
1) change programatically data source for specific report/dahsboard
2) generate specific reports into pdf for specific customer.
Can anybody say how to do this?
Solved! Go to Solution.
1) change programatically data source for specific report/dahsboard - Do you have a Power BI report or a Paginated Report?
For Power BI report you can change the data source of the dataset using this API:
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/update-datasources-in-group
For Paginated report you have this API for changing the data source:
https://docs.microsoft.com/en-us/rest/api/power-bi/reports/update-datasources-in-group
2) generate specific reports into pdf for specific customer.
The REST API for exporting to PDF requires Premium/Embedded capacity (unless you're exporting a paginated report)
report can be exported to pdf file
Reports - Export To File In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs
1) change programatically data source for specific report/dahsboard - Do you have a Power BI report or a Paginated Report?
For Power BI report you can change the data source of the dataset using this API:
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/update-datasources-in-group
For Paginated report you have this API for changing the data source:
https://docs.microsoft.com/en-us/rest/api/power-bi/reports/update-datasources-in-group
2) generate specific reports into pdf for specific customer.
The REST API for exporting to PDF requires Premium/Embedded capacity (unless you're exporting a paginated report)
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |