The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I am trying to export a power BI embedded report to pdf or pptx.
I am following this link of the documentation:
https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to
It seems to fit what i need but there are some complications i don't understand.
It doesn't seems to address the complexity of creating the object Client:
// The 'Client' object is an instance of the Power BI .NET SDK
var export = await Client.Reports.ExportToFileInGroupAsync(groupId, reportId, exportRequest);
this seems to be an object of the class PowerBIClient, that to be instanziated needs a Uri and a TokenCredential.
For obtaining this token it seems that the only way is to have the report as an app on Azure AD.
Here my question: is this true? The only way to authenticate is to have an app on Azure AD, or i can export the report even without it?
Solved! Go to Solution.
Hi @gbiscini
Export report from Power BI Embed need authentication.
You can authenticate using a user (or master user) or a service principal.
For reference: Export Power BI embedded analytics reports API - Power BI | Microsoft Docs
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @gbiscini
Export report from Power BI Embed need authentication.
You can authenticate using a user (or master user) or a service principal.
For reference: Export Power BI embedded analytics reports API - Power BI | Microsoft Docs
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
6 | |
4 | |
3 | |
3 | |
2 |
User | Count |
---|---|
9 | |
7 | |
6 | |
5 | |
4 |