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
    99,086 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
    22,130 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!

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 2,005 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,148 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans