CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Search Builder in API for Contacts? Find Contacts from Custom Field Values?
Pages: [1]

Author Topic: Search Builder in API for Contacts? Find Contacts from Custom Field Values?  (Read 1141 times)

ijames

  • Guest
Search Builder in API for Contacts? Find Contacts from Custom Field Values?
July 19, 2009, 02:06:33 am
Hi,

I'm using the APIs to list out various groupings of Contacts.  I've got the idea that I can setup custom field data values, for instance radio buttons for the "Quadrant" of the contact being "One", "Two", "Three", "Four".  Each Contact (Individual or Organization) will be one of these, or none.  How do I use civicrm_contact_search() to find all the "One"s? 

Thanks much!

James

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Search Builder in API for Contacts? Find Contacts from Custom Field Values?
July 20, 2009, 02:32:42 am
Check: http://wiki.civicrm.org/confluence/display/CRMDOC/Contact+APIs#ContactAPIs-civicrmcontactsearch%28%26%24params%29

Kurund
Found this reply helpful? Support CiviCRM

ijames

  • Guest
Re: Search Builder in API for Contacts? Find Contacts from Custom Field Values?
July 22, 2009, 11:28:57 pm
Thanks!  I can see how that would work for groups, but what about custom fields?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Search Builder in API for Contacts? Find Contacts from Custom Field Values?

This forum was archived on 2017-11-26.