Forum Discussion
Export data from a published report
Thanks for the reply. Can you provide a better example on the export API. I saw the code sample on the github but how do yo place it whithin the context? or how do you bind it to a button as an example to download a data. Also, on the giuthub page the link to "export data documentation" gives you 404.
You can try the showcase and sample code in this playground. Refer to: https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous7 years agoNot applicable
Thank you v-yuta-msft for this info. Similar to the OP, I'm a little lost on how to integrate your answer into a dashboard. I've built a number of dashboards and have only recently started embedding them into a sharepoint page. The code you are linking to seems meant for somewhere in the code I'm using to embed the visual in the sharepoint page. Is that right? I am not very familiar at all with web design and thus other than embedding dashboards could use some guidance in adding functionality. If there's a resource for learning more about embedding Power BI visuals into websites, I'd happily try to tackle this more myself.
- v-yuta-msft7 years ago
Community Support
Anonymous,
You don't need any hard code on embedding report to sharepoint online page, you can refer to steps in link below:
https://docs.microsoft.com/en-us/power-bi/service-embed-report-spo.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous7 years agoNot applicable
Thank you for the link. I mispoke earlier in saying it was a sharepoint site. Our site is similar to this one, and we'd like to allow users to download the underlying data. I assume the link you provided earlier to the git repo is meant for adding this functionality to such sites. Is that right? If so, can you give more details of what that might look like?
- v-yuta-msft7 years ago
Community Support
Anonymous,
You may follow the tutorial in the power bi embeded documentation.
https://docs.microsoft.com/en-us/power-bi/developer/embedding.
Also, there're some free tutorial course or lecture on youtube like below:
https://docs.microsoft.com/en-us/power-bi/developer/embedding.
Hope you they can help you.
Regards,
Jimmy Tao