Answers.Body: <p>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:</p>
  
  <p><a href="https://dmaster.demo.civicrm.org/civicrm/contact/search/custom?csid=15&amp;text=894-1515&amp;table=Contact&amp;force=1&amp;reset=1" rel="nofollow noreferrer">https://dmaster.demo.civicrm.org/civicrm/contact/search/custom?csid=15&amp;text=894-1515&amp;table=Contact&amp;force=1&amp;reset=1</a></p>
  
  <p>That will bring up the contact with phone 894-1515.</p>
  
  <p>If you want to include activities and such, then leave out the "table=Contact" part.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-11T19:07:12.883Z
Answers.Text: 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.
Answers.UserDisplayName: LAE
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-11T19:10:46.627Z
Answers.Text: The above will do that.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-11T19:37:09.500Z
Answers.Text: 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
Answers.UserDisplayName: LAE
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-11T19:52:24.953Z
Answers.Text: My field is web development, databases and other market research software.
Answers.UserDisplayName: LAE
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-11T20:00:21.010Z
Answers.Text: 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.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-11T20:05:09.970Z
Answers.Text: IT WORKED!!!  Thank you so much.
Answers.UserDisplayName: LAE
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-11T20:19:24.480Z
Answers.Text: beware missing out contacts that have the number but formatted differently
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-11T13:48:26.850Z
Answers.LastActivityDate: 2019-04-11T17:08:51.890Z
Answers.LastEditDate: 2019-04-11T17:08:51.890Z
Answers.UserDisplayName: Demerit
Answers.Body: <p>LAE, You can do this in many ways</p>
  
  <ol>
  <li>As suggested by Demerit you can use Full text search and append in url.</li>
  <li>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</li>
  </ol>
  
  <p>HTH</p>
  
  <p>Pradeep </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-11T19:05:38.820Z
Answers.Text: Thanks.  I will give this a try
Answers.UserDisplayName: LAE
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-11T15:35:31.020Z
Answers.LastActivityDate: 2019-04-11T15:35:31.020Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>How can I add a phone number in a URL query string in CiviCRM?</p>
  
  <p>Goal:  To bring up all records associated with that number</p>
  
  <p>Thank you,</p>
  
  <p>Laurie</p>
  
Tags: <database><urls>
Title: URL Query String - Phone Number
ThreadText: # URL Query String - Phone Number
  
  (Asked by: username_0 on 2019-04-11)
  
  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,
  
  Laurie
  
  **Tags:** database, urls
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-04-11. Score: 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:
  
  <https://dmaster.demo.civicrm.org/civicrm/contact/search/custom?csid=15&text=894-1515&table=Contact&force=1&reset=1>
  
  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.
  
  > **Comments:**
  > **username_0**: 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.  
  > **username_1**: The above will do that.  
  > **username_0**: 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  
  > **username_0**: My field is web development, databases and other market research software.  
  > **username_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.  
  > **username_0**: IT WORKED!!!  Thank you so much.  
  > **username_2**: beware missing out contacts that have the number but formatted differently  
  
  ---
  
  ### Answer by username_3 on 2019-04-11. Score: 1
  
  LAE, You can do this in many ways
  
  1. As suggested by username_1 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
  
  HTH
  
  username_3
  
  > **Comments:**
  > **username_0**: Thanks.  I will give this a try  
  
  ---
  
  