Phone Number Search is too Limited

Phone Number Search is too Limited

Hello there,

Every now and then, we need to search for customers by phone number. However, due to inconsistent data entry across multiple applications, searching for phone numbers is very difficult/impossible. For example, phone numbers in the USA can be written as:

+1 (123) 456-7890
+1 (123) 4567890
+1 123-456-7890
+1 123 456 7890
+11234567890

And then of course it can be written all those ways but without a country code (+1) in the beginning.

Depending on how a user searches for a phone number, Zoho Subscriptions may or may not return a matching result, because even if all the NUMBERS are correct, the FORMAT seems to be the problem.

I was wondering if you could adjust the search mechanics so that formatting and country codes aren't taken into account. For example...
  1. numberToSearch = userInput.replaceAll("[^0-9]","");
  2. numberToSearch = numberToSearch.right(10);   // Removes the (+1) country code, if present
  3. // Then search database: 
  4. MatchingCustomer = CustomerPhone.replaceAll("[^0-9]","").contains(numberToSearch) || CustomerMobile.replaceAll("[^0-9]","").contains(numberToSearch);
I would create a custom function myself, but I don't know how to make Line 4 work. I don't think it's possible for us to search matches on "altered" forms of stored values, without iterating through every phone number in our database and creating a Map() from scratch. But that would easily exceed our maximum allowable # of arguments per function as we have thousands of customers.

I'm hoping perhaps you can implement this search method on your end, or provide us a way to code this ourselves.

Thank you,
Josh
    • Sticky Posts

    • Introducing Developer Space in Zoho Subscriptions

      Hello devs! At Zoho Subscriptions, we're constantly looking for ways to empower the developer community. Our goal is to provide you with the tools you need to integrate Zoho Subscriptions with your other platforms, and we also want to make it easy to

      Zoho SalesIQ Resources



            Zoho TeamInbox Resources

              Zoho DataPrep Resources


                  Zoho CRM Plus Resources

                    Zoho Books Resources


                      Zoho Subscriptions Resources

                        Zoho Desk Resources

                          Zoho Projects Resources


                            Zoho Sprints Resources


                              Qntrl Resources


                                Zoho Creator Resources


                                  Zoho WorkDrive Resources




                                      Zoho Campaigns Resources

                                        Zoho CRM Resources

                                                    Design. Discuss. Deliver.

                                                    Create visually engaging stories with Zoho Show.

                                                    Get Started Now


                                                      Zoho Show Resources


                                                        Zoho Writer Writer

                                                        Get Started. Write Away!

                                                        Writer is a powerful online word processor, designed for collaborative work.

                                                                  有料プランをご利用の方