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

[SOLVED] Action from page extension is not showing

(1) ShareShare
ReportReport
Posted on by 53
Hi everyone. I am new to Business Central and AL programming. I am now learning and following the learning path provided by Microsoft.
 
I have a Demo Page as follow:
 
 
And my DemoPageExt:
 
I want my second action to be placed after the first action so I use addafter(FirstAction). However, the second action is not showing on my Demo Page:
 
 
 
Application version: 24.4.22295.22393
Runtime: 13.1
 
What have I done wrong???  I have spend hours reading tutorials on actions and page extension and still wasn't able to solve the issues.
I am slowly losing my sanity. Please help, thank!!!!!!!
I have the same question (0)
  • Suggested answer
    Sami Ullah Profile Picture
    315 Moderator on at
    Hi,

    Try this, you were missing actionref.
     
    pageextension 60106 DemoPageExt extends DemoPage
    {
        actions
        {
            addafter(FirstAction)
            {
                action(SecondAction)
                {
                    Caption = 'Second Action';
                    ApplicationArea = All;
                    Image = CalendarMachine;
                    ToolTip = 'This is my second action';
                }
            }
    
    
            addlast(Promoted)
            {
                actionref(SecondAction_Promoted; SecondAction)
                {
                }
            }
    
        }
    }
  • Suggested answer
    YUN ZHU Profile Picture
    98,066 Super User 2026 Season 1 on at
    The reason is simple. If there is nothing running in the action, such as a trigger or runobject property, the action will not be displayed.
    This is the behavior since NAV. You can add a message like the first action, and you can see it.
     
    Hope this helps.
    Thanks.
    ZHU
  • Verified answer
    Khushbu Rajvi. Profile Picture
    21,573 Super User 2026 Season 1 on at
    If there is nothing running in the action, such as a trigger or a run object property, the action will not be displayed. add onaction trigger.
  • kayc529 Profile Picture
    53 on at
    Thank you all for the response! My problem is solved.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,032 Super User 2026 Season 1

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,049 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,029 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans