cancel
Showing results for 
Search instead for 
Did you mean: 
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
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors