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...
Suggested Answer

Can I modify action in Business Central Extension?

(0) ShareShare
ReportReport
Posted on by 410

Hello,

Can I modify any action in Business Central. I mean, I want to trigger user-defined method. 

I have the same question (3)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    You can modify properties of an action by using:

    modify(ActionName)

    Regarding code, if the action throws events, you can attach to those events and add custom code. If the action does not raise events, best way is to hide standard action and create your custon action.

  • Asif Shahzad Profile Picture
    410 on at

    Thanks for reply. Can you please little explain event attachment. I never subscribed events in BC.

  • Suggested answer
    Mohana Yadav Profile Picture
    61,200 Super User 2026 Season 1 on at

    here is the help on events

    docs.microsoft.com/.../devenv-events-in-al

  • Suggested answer
    divyeshchitte Profile Picture
    970 on at

    Yes you can develop page extension and add custom action on the page

    Ref

    divyeshchittenavbc.wordpress.com/.../

  • Sagar Dangar Profile Picture
    10 on at

    You Can Modify Standard Action using PageExtension object .

    Here is sample where you can write your code or trigger.

    actions

       {

           modify(<ActionName>)

           {

               ApplicationArea = all;

               trigger OnAfterAction()

               var

                   myInt: Integer;

               begin

               end;

           }

       }

  • Suggested answer
    Mohsin Abbas Profile Picture
    525 on at

    Hi

    Yes, you can do that using PageExtension object.

    Here's a sample code:

    pageextension 50100 MyExtension extends "Customer List"

    {

       actions

       {

           addafter("&Customer")

           {

               action(NoSeries)

               {

                   ApplicationArea = all;

                   Image = NewProperties;

                   Caption = 'New Action';

                   RunObject = codeunit 50103;

               }

           }

           modify("C&ontact")

           {

               trigger OnAfterAction()

               begin

                   Message('New Logic goes here');

               end;

           }

       }

    }

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

#2
YUN ZHU Profile Picture

YUN ZHU 1,136 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 956 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans