Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Business Central forum

Actions tab in Business Central

(0) ShareShare
ReportReport
Posted on by 700

pastedimage1568285390037v1.png

pastedimage1568285412534v2.png

Hi All,

I want to disable the functionality of Reports as in first screenshot and retain the functionality of Reports as in the second one.

Following is the AL code used -

actions
    {
        // Adds the action called "My Actions" to the Action menu 
        addafter("Absence Registration")
        {

            group("Reports")
            {
                group("Employee Reports")
                {
                    action("Employee-All")
                    {

                        Promoted = true;
                        PromotedCategory = Report;
                        ApplicationArea = All;
                        trigger OnAction()
                        begin
                            myEmployeeAllReport.run()
                        end;
                    }
                    action("Employee-Birthday")
                    {

                        Promoted = true;
                        PromotedCategory = Report;
                        ApplicationArea = All;
                        trigger OnAction()
                        begin
                            myEmployeeBirthdayReport.run()
                        end;
                    }
                    action("Employee-Confidential Information")
                    {

                        Promoted = true;
                        PromotedCategory = Report;
                        ApplicationArea = All;
                        trigger OnAction()
                        begin
                            myEmployeeConfidentialInfoReport.run()
                        end;
                    }
                    action("Employee-Comments")
                    {

                        Promoted = true;
                        PromotedCategory = Report;
                        ApplicationArea = All;
                        trigger OnAction()
                        begin
                            myEmployeeCommentsReport.run()
                        end;
                    }

                }
            }
        }
    }
Please suggest how to achieve this. 
Thanks!
Categories:
  • Verified answer
    Avinash B Profile Picture
    1,455 on at
    RE: Actions tab in Business Central

    Hi

    Only promoted actions are visible there.

    On each action, you want to promote the use of the following properties.

    Promoted = true;

    PromotedCategory = Report;

    Regards,

    Avinash B

  • Dynamics 365 Business Central Profile Picture
    700 on at
    RE: Actions tab in Business Central

    pastedimage1568366148231v1.png

    Used the reporting section, still not getting desired result

  • Suggested answer
    Avinash B Profile Picture
    1,455 on at
    RE: Actions tab in Business Central

    Hi

    Instead of creating a group called report, Use the Reporting section.

    actions

       {

           addlast(Reporting) //adds all the actions to the Report tab

           {

               // Create your actions

           }

       }

    Regards

    Avinash B

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans