Skip to main content

Notifications

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

Need to search based on "Search Name" field

Posted on by 1,654

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?

 

Categories:
  • Inkey Solutions Profile Picture
    Inkey Solutions 1,654 on at
    Need to search based on "Search Name" field
    Hi Inge,
     
    Could you please tell us how can we write a code for the "Search Name" field under given procedure by you?
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    Need to search based on "Search Name" field
    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")
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,219 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans