Skip to main content

Notifications

Announcements

No record found.

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

How to add button to Posted Sales Shipment page.

(1) ShareShare
ReportReport
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.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,115 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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans