Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 ?


  • #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.

    Comment


    • #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


      • #4
        Did you try to prepend wildcard to your query, like '%094563434'

        Comment


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

          Comment


          • #6
            application/Espo/Core/SelectManagers/Base.php
            methods textFilter and q
            But it's core file and will be rewritten after some upgrade.

            Comment

            Working...
            X