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

Community site session details

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

Report can not be accessed By Action

(1) ShareShare
ReportReport
Posted on by
Hello Developers,
 
I am facing an issue in Business Central Version W1 26.4 (Platform 26.0.39765.0 + Application 26.4.37194.39569)
 
I have created an report and I want to run it by click an action. But whenever I try to do it system throws me an error
 
Can anyone please help me with this?
I have the same question (0)
  • Suggested answer
    Pallavi Phade Profile Picture
    1,226 on at
    Report can not be accessed By Action
    Namaste @CU05090444-2
     
    Can you write an AL script to run the report instead of assignment as Sub link in action  . As per error message , necessary filters are not applied in page action  . You can add certain filters and verify . 
     
    Below is sample
     
    var
        CustomerRec: Record Customer;
        SalesReport: Report "Salesperson - Sales Statistics";
    begin
        CustomerRec.SetCurrentKey("No.");  
        CustomerRec.SetFilter("Salesperson Code", 'JR|PS');  
        SalesReport.SetTableView(CustomerRec);  
        
        SalesReport.Run();
    end
    ;
     
    Second Sample
     
    Report.Run(Number: Integer [, RequestWindow: Boolean] [, SystemPrinter: Boolean] [, var Record: Record])
     
    var
        MyRec: Record Customer;
    begin
        MyRec.FindLast;  
        MyRec.SetRecFilter;  
        Report.Run(101, True, True, MyRec);  
    end;
     
    Refer more links
     
    If you feel this helped  , please mark as "Verified"
     
    Regards
    Pallavi Phade
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 3,148

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,802

#3
Sohail Ahmed Profile Picture

Sohail Ahmed 2,682 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans