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

How to write an action: After making Post in Sales Order Screen By AL Business Central?

(0) ShareShare
ReportReport
Posted on by 4
Hello thank you very much for always helping me
 
How to write an action By AL Business Central:
After making Post in Sales Order Screen, I want to create a Data table and fill the invoice information EX(invoice Number,invoice Amount) in the Data table.
 
How write action After Post? The code is below Not Working After Posting ?
How create a Data table ?
How fill the invoice information in the Data table ?
 
I hope your kindness is a small example or Link
======================================================================================
pageextension 50100 /Sales Order Ext/ extends /Sales Order/
{
    actions
    {
        addafter(Post)
        {
            action(Test)
            {
                trigger OnAction()
                begin
                    Message('Hello, world! This is a test action.');
                end;
            }
        }
    }
}
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,638 Super User 2025 Season 2 on at
    Hi, there are generally two ways.
    1. After the button executes, trigger your program.
     
    2. Use posted related events.
     
    I personally recommend the second method.
     
    Hope this helps.
    Thanks.
    ZHU
  • Gerardo Rentería García Profile Picture
    25,225 Most Valuable Professional on at
  • Suggested answer
    Rami Mazrawi Profile Picture
    4 on at

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 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans