Notifications
Announcements
We received a requirement to develop the Report in Power BI already the Report Developed in Business central. Since Business Central does not provide an option to expose reports directly via API, we planned to send the required data from Business Central to Power BI through an API. As reports cannot be published as APIs in Business Central, we decided to run the report logic in Business Central and store the calculated values in a custom table. This table will then be exposed through an API for Power BI consumption. In Business Central, it is possible to run a report without previewing or saving it as PDF, Excel, or Word by using Report.Run() or Report.RunModal( ). This allows the report to execute its business logic and populate the custom table without generating or saving any output file. Therefore, the above approach is technically feasible and recommended for this scenario.
We received a requirement to develop the Report in Power BI already the Report Developed in Business central. Since Business Central does not provide an option to expose reports directly via API, we planned to send the required data from Business Central to Power BI through an API.
As reports cannot be published as APIs in Business Central, we decided to run the report logic in Business Central and store the calculated values in a custom table. This table will then be exposed through an API for Power BI consumption.
In Business Central, it is possible to run a report without previewing or saving it as PDF, Excel, or Word by using Report.Run() or Report.RunModal( ). This allows the report to execute its business logic and populate the custom table without generating or saving any output file.
Report.RunModal( )
Therefore, the above approach is technically feasible and recommended for this scenario.
You can also consider an alternative approach: Instead of storing calculated values in a custom table, you can save the report output as an encoded Base64 string using AL. This allows you to expose the report directly via an API and then decode it back into a PDF.
For reference, here’s a detailed guide on how to implement this in AL: https://yzhums.com/56542/
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,798
Khushbu Rajvi. 812 Super User 2025 Season 2
YUN ZHU 717 Super User 2025 Season 2