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

Community site session details

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

How to hide the +New action button in Customer list page using AL Code?

(11) ShareShare
ReportReport
Posted on by 587
Hello Folks,
       Is there any way to hide the +New action button in Customer List page using AL code.
 
       Or Any way to navigate to the custom page using that standard +new button
 
      P.S: We can hide that +new button by disabling the insert permission to that user. But I need that insert permission.
 
Thanks,
Tamilarasu Arunachalam
I have the same question (0)
  • Tamilarasu Arunachalam Profile Picture
    587 on at
    How to hide the +New action button in Customer list page using AL Code?
    Hi Nitin,
          I have to open a custom wizard page on click of the +New button. After finishing that wizard, I have to open the customer card and populate the fields which i got from that wizard. 
     
         But anyhow i need that insert permission for customer.
     
    Thanks,
    Tamil
  • Suggested answer
    HVGEEL Profile Picture
    306 on at
    How to hide the +New action button in Customer list page using AL Code?
    Hi,
     
    your question is confusing.
     
    The first thought of managing the presence of the New button via Permissions puts you on the right track.
    What I fail to understand is the ambiguity in the question:
    - you donnot want the New option
    - you do need the Insert permission on T18.

    Where does this amibuity come from, and is it an option to prepare separate permissions for distinct User Groups: some groups have the Insert permission, others don't.
    And... if you are going to add a Custom Page... you can manage access to that using permissions as well.
  • Suggested answer
    YUN ZHU Profile Picture
    93,820 Super User 2025 Season 2 on at
    How to hide the +New action button in Customer list page using AL Code?
    Hi, as far as I know there is no way, this is managed via permission sets.
    But you can try to prompt an error when the user creates a record. You can control this behavior with some custom settings.
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,239 Super User 2025 Season 2 on at
    How to hide the +New action button in Customer list page using AL Code?
    You can extend the Customer Page and set the InsertAllowed to false.
    After that, add a new action to create new customer from your wizard.
     
    pageextension 50000 "Customer Card" extends "Customer Card"
    {
        InsertAllowed = false;
    }
  • Suggested answer
    Cenzo Profile Picture
    336 on at
    How to hide the +New action button in Customer list page using AL Code?
    InsertAllowed = false
  • Suggested answer
    Dhiren Nagar Profile Picture
    354 on at
    How to hide the +New action button in Customer list page using AL Code?
    Hi,
     
    For this you need to create a page extension.
     
    In the page extension:'
     
    1 - If you want to disable the + (New) button then set the InsertAllowed = false;
    2 - If you want any new page to open when you click on + (New) button. You need to add your custom button through action creation in the pageextension.
     
    I hope this helps.
     
    ✅ Mark this as the verified answer if helpful.
     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,922 Super User 2025 Season 2 on at
    How to hide the +New action button in Customer list page using AL Code?
  • Suggested answer
    Adil Usman Profile Picture
    10 on at
    How to hide the +New action button in Customer list page using AL Code?
    How to hide the + New action button in Customer list page using AL Code?
    InsertAllowed =false;
  • Suggested answer
    Pallavi Phade Profile Picture
    2,627 on at
    How to hide the +New action button in Customer list page using AL Code?
    Namaste ,
     

    You can set the property InsertAllowed = False in the page extension of the Customer List page.

    Additionally, you can place an error in the OnInsertRecord() trigger within the Customer table extension to prevent record creation.

    With these conditions in place, no customer can be inserted directly from the page. However, if you add the validation at the table level, you can still allow specific users (e.g., with admin rights in the User Setup) to create customers.

    From a business perspective, this ensures that only a designated person is responsible for creating new customers.

     
    If you feel this answer as helpful , please verify the answer
     
    Regards 
    Pallavi Phade 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,163

#2
OussamaSabbouh Profile Picture

OussamaSabbouh 1,908

#3
YUN ZHU Profile Picture

YUN ZHU 1,878 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans