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...
Answered

Hide Blocked Customers in BC

(0) ShareShare
ReportReport
Posted on by 5

Hello Experts,

Can anyone please suggest how to hide Blocked customers from Customer list thru code in BC.

Appreciate your help. Thanks much

Ryan

I have the same question (0)
  • Ryan_12 Profile Picture
    5 on at
    RE: Hide Blocked Customers in BC

    Thanks It worked

  • Verified answer
    Snehanshu Mandal Profile Picture
    560 on at
    RE: Hide Blocked Customers in BC

    What about extending the customer list page with the following code:

    pastedimage1620584791426v1.png

    pageextension 90120 CustomerListExt extends "Customer List"
    {    
        layout
        {
            // Add changes to page layout here

        }
        
        trigger OnOpenPage()
        begin
            Rec.SetFilter(Blocked,'<>%1',Rec.Blocked::All);
        end;
    }
    Remeber: Customers can be blocked in various ways and the above code hides the customers blocked with the option "All"

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 4,197

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,673

#3
Sumit Singh Profile Picture

Sumit Singh 2,907

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans