Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I am able to download .pbix file from PBI service using powershell Invoke-PowerBIRestMethod rest api please find below runnable code
$ApiUrl = "https://api.powerbi.com/v1.0/$groupsPath/reports/$reportId/Export"
#Export power BI file to current directory
$export_id = Invoke-PowerBIRestMethod -Url $ApiUrl -Headers $auth_header -Method GET -ContentType "application/zip" -OutFile $filePath -TimeoutSec 0 -Verbose
But unable to process this in python. Can you help here for missing paramter or what I am missing.
While converting into python Im using below code:
Target URL: The target API is GET - https://api.powerbi.com/v1.0/myorg/groups/$reportId/reports/$groupId/Export
Header: { Authorization: bearer 'access_tocken', Content-Type: application/zip}
Solved! Go to Solution.
Hi @pbi_sujay ,
You can refer to the sample:
https://github.com/cmberryau/pypowerbi/blob/master/pypowerbi/reports.py
For more details,you can refer to this blog:
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @pbi_sujay ,
You can refer to the sample:
https://github.com/cmberryau/pypowerbi/blob/master/pypowerbi/reports.py
For more details,you can refer to this blog:
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The spelling is different. Use Bearer (capital B) and no single quotes around the token.
Hi , Yes we already tried that but it did not work.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
9 | |
3 | |
3 | |
2 |