web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Modify or Customize Page ribbons

(6) ShareShare
ReportReport
Posted on by 33
I am looking for a solution to edit and modify the menu ribbon on different pages. 
 
In particular I am looking to create a custom "Sales Order" page called "Custom Sales Order" and I would like to add the link to the ribbon as a "New Document" item.
 
I have searched but I can't find any resource for doing this other than to add an action item. I will go that route if I have to, but adding it to where I want on the ribbon or menu would be the best option.
 
Please see the attached image.
New Document Menu Item.jpg
I have the same question (0)
  • Suggested answer
    Dr Gomathi MVP, MCT Community lead, MLE Profile Picture
    395 Moderator on at
    Hi,
    You need to extend the existing page using AL code.

    Using a Page Extension

    You can achieve this by creating a Page Extension in AL and adding an action in the desired menu section.

    Step 1: Create a Page Extension for the Ribbon

    Create an AL file and define the page extension:

     

    pageextension 50100 CustomSalesOrderRibbon extends "Sales Order List"
    {
        actions
        {
            modify("New Document")
            {
                addafter("Sales Order")
                {
                    action("Custom Sales Order")
                    {
                        ApplicationArea = All;
                        Caption = 'Custom Sales Order';
                        Image = SalesOrder;
                        Promoted = true;
                        PromotedCategory = Process;
                        PromotedIsBig = true;
                        RunObject = Page "Custom Sales Order"; // Reference to your custom page
                        ToolTip = 'Create a new Custom Sales Order.';
                    }
                }
            }
        }
    }
    
     
    Ensure "Custom Sales Order" Page Exists
     
    If you haven't created the Custom Sales Order page yet, define it as follows:
     
    page 50101 "Custom Sales Order"
    {
        PageType = Document;
        SourceTable = "Sales Header"; // Ensure this aligns with your setup
        ApplicationArea = All;
        UsageCategory = Documents;
        Caption = 'Custom Sales Order';
    
        layout
        {
            area(content)
            {
                repeater(Group)
                {
                    field("No."; Rec."No.") { ApplicationArea = All; }
                    field("Sell-to Customer No."; Rec."Sell-to Customer No.") { ApplicationArea = All; }
                }
            }
        }
    }
    
     

    Deploy and Test

    • Deploy the extension to your Business Central environment.
    • Open the Sales Order List page.
    • Click New Document, and you should see Custom Sales Order listed there.
     
    Please try this and let me know if it works
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,132 Super User 2026 Season 1 on at
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,132 Super User 2026 Season 1 on at
    pageextension 50400 CustomSalesOrder extends "Sales Orders"
    {
        actions
        {
            modify("New Document")
            {
                addafter("Contract)
                {
                    action("Custom Sales Order")
                    {
                        ApplicationArea = All;
                        Caption = 'Custom Sales Order';
                        Image = SalesOrder;
                        Promoted = true;
                        PromotedCategory = Process;
                        PromotedIsBig = true;
                        RunObject = Page "Custom Sales Order"; // add your custom page
                    }
                }
            }
        }
    }
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,547 Super User 2026 Season 1 on at
    You can use the below link to help modify the actions
     
     
    If this helped you, please check the box Does this answer your question?
  • Suggested answer
    YUN ZHU Profile Picture
    99,090 Super User 2026 Season 1 on at
    Hi, If you just want to add an action, Page Customization can also do it.
    More details:
    Role customization overview
     
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,949 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,064 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 559 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans