web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Connecting Custom PowerBI Reports to Business central

(5) ShareShare
ReportReport
Posted on by 152
I have a PowerBI report, I want to open that BI report in one action
 
I wanna create a new page same as Power BI Connector Setup.
 
 
wanna create a field same as Power Bi Project App. So I will add a Power Bi app from the lookup.
 
I am going to create one action on rolecenter, So When I click on that it has to open the report which I gave it on the field which  i created. I looked base how it is handling but all the code is written in Access = Internal , SO I am unable to do that.
 
For now I am doing it by taking the entire code and creating as separate functions and using it.
 
Is there any way handing this, because when I dont have powerbi access I wanna run all the checkups which base is running.
 
 
Please suggest.
I have the same question (0)
  • Verified answer
    Sahan Hasitha Profile Picture
    2,683 on at
    hi
     

    You can add a Boolean field (e.g., Enable Power BI Reports) in the User Setup table. Then, in your page extension, handle this Boolean in the OnOpenPage trigger. This way, when the page opens, the system checks whether the logged-in user has Power BI access enabled. If true, it runs the Power BI logic (open or display the report); if false, it skips the checks and prevents unnecessary errors.This approach ensures you don’t always rely on the base Access = Internal code, but instead control visibility and execution through user-specific setup. It also gives flexibility to administrators to toggle Power BI report access per user without code changes.

  • Verified answer
    Nimsara Jayathilaka. Profile Picture
    4,950 Super User 2026 Season 1 on at
    Hi
    • Create a Boolean field named "Enable Power BI Reports" in the User Setup table.
    • In your page extension, use the OnOpenPage trigger to check this Boolean field for the logged-in user.
    • If the field is true, execute the Power BI report logic (open/display the report).
    • If false, skip the Power BI-related checks to avoid unnecessary error messages.
    • This approach avoids hard-coding assumptions about user access and controls access via user setup.
    • It allows administrators to enable or disable Power BI report access per user without code changes.
    Thanks
    Nimsara

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,949 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,064 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 559 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans