web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    Rami Mazrawi Profile Picture
    4 on at
    How to write an action: After making Post in Sales Order Screen By AL Business Central?
  • Gerardo Rentería García Profile Picture
    22,524 Most Valuable Professional on at
    How to write an action: After making Post in Sales Order Screen By AL Business Central?
  • Suggested answer
    YUN ZHU Profile Picture
    90,019 Super User 2025 Season 2 on at
    How to write an action: After making Post in Sales Order Screen By AL Business Central?
    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

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,725 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,610

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,221

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans