How can I add a phone number in a URL query string in CiviCRM?

Goal: To bring up all records associated with that number

Thank you,


2 Answers 2


It depends what you mean by "all records", but the custom search called full-text search (under Search - Custom Searches) can be made to run via url like so:


That will bring up the contact with phone 894-1515.

If you want to include activities and such, then leave out the "table=Contact" part.

  • Thanks. What I meant ... any record associated with that phone number. There could be up to 50 records with the same phone number but different names associated with it.
    – LAE
    Apr 11, 2019 at 19:07
  • The above will do that.
    – Demerit
    Apr 11, 2019 at 19:10
  • I do not normally work on CiviCRM. My company does use it but not on my projects. I was asked to help the team out. Please excuse my little knowledge. I tried the following link and got a message "sorry we are not able to provide". ... EdwardsHeart/index.php?q=civicrm/contact/search/custom&text=262-268-5100&reset=1&force=1
    – LAE
    Apr 11, 2019 at 19:37
  • 1
    You need the ?csid=15 part included in the url. That tells it which custom search to use, and 15 is the built-in fulltext search.
    – Demerit
    Apr 11, 2019 at 20:00
  • 1
    IT WORKED!!! Thank you so much.
    – LAE
    Apr 11, 2019 at 20:05

LAE, You can do this in many ways

  1. As suggested by Demerit you can use Full text search and append in url.
  2. If you are using Drupal, then you can use Views to create list of contact and then use CONTEXTUAL FILTERS to filter based on arguments from URL



  • Thanks. I will give this a try
    – LAE
    Apr 11, 2019 at 19:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.