Skip to main content

Notifications

Announcements

No record found.

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans