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...
Unanswered

Add New Action to Page Extension When Existing Page Currently Has No Actions

(0) ShareShare
ReportReport
Posted on by

I am looking to add an action to an existing page that currently does not contain any actions.

Since there are no actions on the page, AddAfter(), AddBefore(), AddFirst(), & AddLast() do not work because there is nothing to 'Anchor' to.

    actions
    {
         AddLast(Anchor)
            {
                rAction
             }
    }
I had read somewhere that you can use something like AddLast(Creation) - and Creation would be an anchor when you need to create your first action, but it doesn't work. Visual Studio lists it as an error.
How do you add add a new action on a page without actions?
This is for a BC14 installation and will be used in many localizations (DE,UK, ES, Ect). I beleive the runtime version is 3.2, or something like that.
Thanks!
  • Truong Tan Chau Profile Picture
    10 on at
    Add New Action to Page Extension When Existing Page Currently Has No Actions
    pageextension id "Vendor Bank Account Card Ext" extends "Vendor Bank Account Card"
    {
        actions
        {
            addlast(Processing)
            {
                action("New Action")
                {
                    Caption = 'My New Action';
                    ApplicationArea = All;
                    Image = Action;

                    trigger OnAction()
                    begin
                        Message('This is my new action!');
                    end;
                }
            }
        }
    }


    In Visual Studio Code, I click Ctrl + Space and it give me the answer for this question.
  • VokesoJcl Profile Picture
    on at
    RE: Add New Action to Page Extension When Existing Page Currently Has No Actions

    Page 9042 - Team Member Activities.  - althought the question is for any page that doesn't have existing actions. I don't know how to provide an 'Anchor' when there isn't anything already there.

    Thank You.

  • Inge M. Bruvik Profile Picture
    1,025 Moderator on at
    RE: Add New Action to Page Extension When Existing Page Currently Has No Actions

    What page (object no.) are you trying to add an action to?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
YUN ZHU Profile Picture

YUN ZHU 446 Super User 2025 Season 1

#2
Sagar Dangar, MCP Profile Picture

Sagar Dangar, MCP 347

#3
Mansi Soni Profile Picture

Mansi Soni 327

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans