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

Notifications

Announcements

No record found.

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
    95,331 Super User 2025 Season 2 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
    20,347 Super User 2025 Season 2 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans