Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi All
Microsoft has released the option to download report in PDF in PowerBI Embedded. However, they has provided only C# code. ANd, for my project, I have required the Java Script code. Can anyone suggest me, how I can get the JS code. Or I can translate C# code into Java Script.
Hi @Anonymous ,
Basically you have to use the exporttofileingroup REST API
https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofileingroup
The C# Code/Dotnet SDK is just a abstraction layer which internally uses the same export api. So you can use the raw api in your javascirpt rather than a C# code/any sdk
Thanks for your reponse. It's great help for me. It will good, if you can share some example file for the same
Kind Regards
Ashwani
Hi @Anonymous ,
I'm not much into javascript, however I can give you some links handy
https://stackoverflow.com/questions/47194412/node-js-app-integration-with-power-bi-rest-api
With the above link you just need to replace the exisiting API with the export API.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
3 | |
3 | |
3 | |
2 | |
2 |