Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Subscribe to page action

Posted on by
Hi!

I want to subscribe/extend action.

On page 43 /Sales Invoice/ I want to do something after user click action /ProformaInvoice/
action(ProformaInvoice){    ApplicationArea = Basic, Suite;    Caption = 'Pro Forma Invoice';    Ellipsis = true;    Image = ViewPostedOrder;    //The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true'    //PromotedCategory = Category5;    ToolTip = 'View or print the pro forma sales invoice.';    trigger OnAction()    var        DocumentPrint: Codeunit /Document-Print/;    begin        DocumentPrint.PrintProformaSalesInvoice(Rec);    end;}
How can I do that? Should it be something like adding another OnBeforeAction trigger?

Best Regards!
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 68,480 Super User 2024 Season 2 on at
    Subscribe to page action
    Hi, you can use one of the following two methods.
    Or
     
    Hope this helps.
    Thanks.
    ZHU

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans