Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Automatic PDF Export of Power BI using Power BI Rest API

Hi All,

 

I am trying to Automate a process which would export a Power BI report in PDF format and send an Email on scheduled basis with that PDF as an attachement and i think it is possible using Power BI Rest API Method. Could anybody help me out on how to achieve this?

 

Or is that possible with Power Automate? If yes Please let me know how to do it. It would be really helpful.

 

Thanks in Advance

Prakash

2 Replies

  • Anonymous yes RestAPI can help, read more here, and then you can send an email with 3rd party tool to send as an attachment or use power automate to send an email.

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi parry2k ,

       

      Thansk for the reply.

       

      I tried to execute it with the below code in Windows Power Shell ISE but was getting one or more error.

       

      Invoke-PowerBIRestMethod -Method POST -Url reports/76746e90-02e9-4677-ac7a-0ea5755c6c47/ExportTo -Body PDF -OutFile PDF

       

      Could anybody pleae help me on the above code to export the Power BI Report into PDF?

       

      Thanks,

      Prakash