i want to search phone number on the globalsearch,what can i do ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saltice
    Junior Member
    • May 2015
    • 3

    i want to search phone number on the globalsearch,what can i do ?

    hi,dear
    we use the espocrm in a call center,
    i want to search phone number on the globalsearch,
    what can i do ?

  • yuri
    Member
    • Mar 2014
    • 8627

    #2
    Create (if not exists) custom/Espo/Custom/Resources/metadata/entityDefs/Account.json
    PHP Code:
    ...
        "collection": {
            "textFilterFields": ["name", "phoneNumber"]
        }
    ... 
    

    Do the same for Contacts, Leads, ...

    Clear Cache.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • mdemaree99
      Junior Member
      • Aug 2015
      • 8

      #3
      Problem is you have to put in the exact phone number.
      There is no way to search by a partial or last 4 of the phone number.

      Comment

      • yuri
        Member
        • Mar 2014
        • 8627

        #4
        Did you try to prepend wildcard to your query, like '%094563434'
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • irvingbach
          Junior Member
          • Apr 2015
          • 5

          #5
          Is there a way to "place" that wildcard in the code, in the practice is annoying to write it on each search.

          Comment

          • yuri
            Member
            • Mar 2014
            • 8627

            #6
            application/Espo/Core/SelectManagers/Base.php
            methods textFilter and q
            But it's core file and will be rewritten after some upgrade.
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            Working...