Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Pikachu-Power
Post Prodigy
Post Prodigy

send images via REST API

Hello,

is it possible to send daily images from Power BI Service to a folder? Maybe the webpage or HTML Code can be used for that?

Many thanks. 

7 REPLIES 7
lbendlin
Super User
Super User

Yes, that is possible.  You can specify the report page that you want to export, and you can export as PNG. Here is the documentation for standard/premium workspaces:

 

https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofileingroup

 

There are examples in this forum on how the mechanics of the export work.

 

https://community.powerbi.com/t5/Service/Power-BI-REST-API-gives-403-error/m-p/1232096#M102893  (towards the end of the post)

Hi lbendlin,

can you may give some examples for the parameters / headers fields?

never worked with REST API before.

Hi @Pikachu-Power

 

See my example below:

Annotation 2020-08-27 173017.pngAnnotation 2020-08-27 173055.png

 

Pls note that the report must be in a dedicated capacity,otherwise it will return an error.

 

 
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Dedicated capacity means I need Power BI Permium?

The example API call is for Premium. There is another similar call for shared capacity. It doesn't ask for the group id.

Which one do you mean? Can you give a link?

I believe I have given you the example in the link.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors