How to Hide the +New and Delete Action Buttons in Business Central Pages

In Business Central, the Customer List page shows a + New & Delete action at the top. This allows users to create new & delete customer records directly from the list. 


In some cases, businesses may want to restrict users from creating or deleting records on certain pages. For example, you may want users to only view or edit customers but not add or remove them.

This can be achieved by using the InsertAllowed and DeleteAllowed properties in a page extension.

Code:

pageextension 50102 CustomerExtension extends "Customer Card"
{
    InsertAllowed = false;
    DeleteAllowed = false;
    layout
    {
    }
}

πŸ‘‰ Once this extension is deployed, the + New button will no longer appear on the Customer List page for any user.

Result:

The + New button will no longer be visible on the Customer Card page.
Users cannot create new customers or delete existing ones.
They can still view and edit existing records (unless you also set ModifyAllowed = false).



Thanks For Reading ...!!😊

Regards,
Khushbu Rajvi

Comments

Popular posts from this blog

Dynamics 365 Business Central: Enabling Custom and Default Tables in the "Search Company Data" Feature

Dynamic 365 Business central: Header on First, Footer on Last page in RDLC Reports

Dynamic 365 Business central: How to Automatically Insert Line Breaks After a Specific Character Limit