Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
20 | |
3 | |
2 | |
2 | |
2 |