Forum Discussion
Power BI embedded - is it possible to auto-create report?
- Anonymous3 years ago
Hi Lucas9393,
I check the document of auto create report but not found any related documents of embeded reports. So I suppose current it not work on power bi embeded reports.
Regards,Xiaoxin Sheng
HI Lucas9393,
I'd like to suggest you try to use power bi rest API to do these operations:
- Get a dataset ID and the embed URL from the Get datasets in Group API.($expand query parameter 'createReportEmbedURL')
- Generate an embed token with access to the dataset and the correspond permissions.
- Use the 'powerbi.createReport' method with the above embed token, the embed URL, and the dataset ID to create a new report.
Reference links:
Datasets - Get Datasets In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Embed Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Create, edit, and save an embedded report | Microsoft Learn
Regards,
Xiaoxin Sheng
- Lucas93933 years agoRegular Visitor
Hey Anonymous, thanks for your response.
The thing is, I am already doing those steps and I am able to successfully create blank report.
What I am looking for is an option to 'auto-create' new report based on existing dataset. This option is available in power bi web application, but I am not able to find if it's doable for power bi embedded
Regards,
Lucas
- Anonymous3 years agoNot applicable
Hi Lucas9393,
I check the document of auto create report but not found any related documents of embeded reports. So I suppose current it not work on power bi embeded reports.
Regards,Xiaoxin Sheng