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

Announcements

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
    5,128 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,371 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,806 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,371

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans