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 ...!!π
Comments
Post a Comment