Forum Discussion
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
- AnonymousNot applicable
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
- MAwwad
Solution Sage
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 !
- AnonymousNot applicable
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