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

Need to search based on "Search Name" field

(0) ShareShare
ReportReport
Posted on by 2,122

Hi All,

I need to search based on the /Search Name/ field on the sales quote page under the Customer Name field because I have short names of clients which are stored in the /Search Name/ field.

 

 

When I type the customer name and press the tab, it will populate the name based on the customer card Name field, but I want this search based on the /Search Name/ field of the customer card.

 

Does anyone have any idea?

 

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at
    Maybe you can try use this event on the sales header table
        local procedure OnBeforeShouldSearchForCustomerByName(CustomerNo: Code[20]; var Result: Boolean; var IsHandled: Boolean; var CallingFieldNo: Integer; var SalesHeader: Record "Sales Header")
     
  • Inkey Solutions Profile Picture
    2,122 on at
    Hi Inge,
     
    Could you please tell us how can we write a code for the "Search Name" field under given procedure by you?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 765 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 571 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 299 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans