Forum Discussion
Power BI embedded - is it possible to auto-create report?
Hi Team,
I can't find auto-create report option in PowerBI embedded analytics docs. I see there is a way to create a blank report, also to auto-generate new dataset and report based on user provided data.
But the thing I am looking for is auto-creating a report based on existing dataset.
Can you please confirm if it's currently not available? If so, are there any plans to add this option in the future?
Thanks,
Lucas
- 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
3 Replies
- AnonymousNot applicable
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
- Lucas9393Regular 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
- AnonymousNot 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