Forum Discussion

Bastienlin_'s avatar
Bastienlin_
Helper II
4 years ago
Solved

Power Automate button - export pages to pdf or pptx problem

Hello, I am posting here because I got no reply in Power Automate Community.

I wanted to add a button to my PBI report to extract pages from this dashboard to PDF and send it to me by email.
The problem is that the filters I apply on the published version are not taken into account. For example when i select values in Slicers about the Date, I want it to be displayed on my extracted pdf version of my dashboard. Nevertheless it isn't the case as I still see the default state of my dashboard (the state when it is published into the PBI Service): I don't see that I selected a date on my slicer .

Did I miss something in my flow ? I only have 3 steps: 1. click on the button, 2. Export to fil for PBI (PDF or PPTX) 3. Send email.

 


Thank you for your help !

8 Replies

  • Hello, I am posting here because I got no reply in Power Automate Community.

    I wanted to add a button to my PBI report to extract pages from this dashboard to PDF and send it to me by email.
    The problem is that the filters I apply on the published version are not taken into account. For example when i select values in Slicers about the Date, I want it to be displayed on my extracted pdf version of my dashboard. Nevertheless it isn't the case as I still see the default state of my dashboard (the state when it is published into the PBI Service): I don't see that I selected a date on my slicer .

    Did I miss something in my flow ? I only have 3 steps: 1. click on the button, 2. Export to fil for PBI (PDF or PPTX) 3. Send email.

     


    Thank you for your help !

  • AmosHersch's avatar
    AmosHersch
    Microsoft Employee

    Hi Bastienlin_ ,

     

    The "export to file" API will always export the report in it's saved state.

    You can't just make changes to the report without saving it, and expect the API to export it with your changes.

    If you want to apply filters you can add filter to the request. For filters and slicers you can use bookmarks

     

    • Bastienlin_'s avatar
      Bastienlin_
      Helper II

      Hello AmosHersch,

      So it is impossible to expect the "export to file" to be dynamic depending on the selections we do in the different slicers of the report ?
      It is necessary that the print button take into account what we select in the slicers for the user...

      Thank you for your answer !

      • AmosHersch's avatar
        AmosHersch
        Microsoft Employee

        Bastienlin_  that's right, unless you have the Power BI report embedded in your own app, and then you can use Power BI Javascript API to capture bookmark of current state of the report, and provide that bookmark in the API request.