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...
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,001 Super User 2025 Season 2 on at

    here is the help on events

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

  • Suggested answer
    divyeshchitte Profile Picture
    968 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

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,010

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans