2

We are embedding power bi reports in a customer web application and I have a requirement where the report has single page and that report page needs to exported to PDF format on a button click(GENERATE REPORT). is this something achievable from power bi or using power automate flow or any other way? belowenter image description here

1 Answer 1

2

Assuming you have this button inside the report page, you can set an event handler for the event "buttonClicked". You get all the event details as parameter in your event handler function. 'buttonClicked' event handler docs

...
report.on("buttonClicked", (event) => {
  if (event.detail.id === "YOUR_BUTTON_ID") {
    // Add your logic to send a request to your backend to consume the Power BI REST APIs
  }
});

You can now consume the report export APIs.
Find the code example here
Note the limitation and considerations of exporting reports to PDF

Sign up to request clarification or add additional context in comments.

1 Comment

The link for the code example you have shared says the feature is in preview but the Power BI rest API documentation at learn.microsoft.com/en-us/rest/api/power-bi/reports/… doesn't mention that. Is this feature is in preview or GA?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.