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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors