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
MAwwad
Super User
Super User

Exporting Several Pages from 1 app that contains several reports

Hello,

 

 

I have an App on PowerBI services, In this app I have 5 unrelated reports.

 

I want to export to PDF 1 page from each report in the app.

 

What is the best way to do that ?

4 REPLIES 4
v-shex-msft
Community Support
Community Support

HI @MAwwad,

You can use get reports API to get correspond reports from app, then you can write a loop to invoke export API with previous results:

Apps - Get Reports - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hello,

 

I know that you can do this but my question is that how can I refresh the Auth token since it works only for 3600 second !

Hi @MAwwad,

You can store the token and expiry into variables and create function to check the expiry datetime and update token, then you can add this function into the loop and use it before invoke API.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Can you help with that ?

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.