Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

How to add button to Posted Sales Shipment page.

Posted on by 38
On the Posted Sales Shipment page on the Home tab I would like to add a button so I can trigger an external function using AI language. I have extended the page but I couldn't find a way to add the button.
 
Here is what I want:
 
So I want to add a button After 'Track Package'. How can I do that in AL language?  
Here is what I have so far: 
 
 
pageextension 60002 PostedSalesShipmentExt extends /Posted Sales Shipment/
 
{
 
 
 
}
 
 
How can I add this button with a trigger?
 
Thanks in advance.
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,333 Super User 2024 Season 2 on at
  • Verified answer
    Yael Suarez Profile Picture
    Yael Suarez 115 on at
    How to add button to Posted Sales Shipment page.
    Hi Try This Friend 
     
     
     
     
    pageextension 52202 "ExtensionExampleName" extends "Posted Sales Shipment"
    {
        layout
        {
            // Add changes to page layout here
        }
    
        actions
        {
            // Add changes to page actions here
            addlast("F&unctions")
            {
                action("Say Hello")
                {
                    ApplicationArea = Basic, Suite;
                    Image = "8ball";
                    Promoted = true;
                    PromotedCategory = Process;
    
                    trigger OnAction()
                    var
                        myInt: Integer;
                    begin
                        Message('Hi From  Mexico :)  Your Logic Must be Here');
                    end;
    
                }
            }
    
        }
    
        var
            myInt: Integer;
    }
    I hope this Helpful For You 


    Happy Code :)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,219 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans