I am developing a client side webpart using PowerBI embedded feature using a Power BI Free Account. PowerBi embedded feature requires PBIX file to be uploaded in Microsoft Azure workspace.
When I schedule a data refresh for my dataset, the report gets refresh but the PBIX generated of particular dataset doesn't gets updated.
In order to display the refreshed data in my client side webpart, an updated PBIX file needs to be replaced with the older version of PBIX.
I am able to manually download PBIX file from PowerBI Service (https://app.powerbi.com/) using "Download Report (download a pbix copy)" from file menu and also able to import the PBIX file to Azure workspace.
But my issue is below:
1. How to programatically download PBIX file.
2. Is there any API published by Microsoft to export file from the PowerBI desktop.
Once we get the PBIX file programatically, we have the PowerBI-cli apis to import the PBIX to workspace.