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
vmakhija
Post Prodigy
Post Prodigy

Export selected pages to PDF using REST APIs

Hello All

I have created a MS Flow to export my report PDF using REST APIs.

I have used the following set of blogs to accomplish this -

https://blog.crossjoin.co.uk/2020/04/25/calling-the-power-bi-export-api-from-power-automate-part-1-c...

https://blog.crossjoin.co.uk/2020/04/27/calling-the-power-bi-export-api-from-power-automate-part-2-c...


However, I want to export only selected pages of my report to PDF. Does anyone know how do to this or have any ideas?

 

I found that we have an API to get the pages of the report -

https://docs.microsoft.com/en-us/rest/api/power-bi/reports/getpagesingroup#code-try-0

However, I am not sure how to combine this with my Flow to select only certain pages.

 

Regards

3 REPLIES 3
lbendlin
Super User
Super User

@lbendlin 

do you have a reference to any example or usage for this?

I am unable to understand how do I use this syntatically.

 

Regards

instead of just specifying the format you also add the pages you want.

 

{ 
  format : "PDF",
  powerBIReportConfiguration:{
    pages:[
      {pageName:"ReportSection59a3330f95669ad473e6"},
      {pageName:"ReportSectionc587b2defc60bdd51b80"}
    ]
  }
}

 

 

 

 

 

 

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 Kudoed Authors