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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Search custom fields
Pages: [1]

Author Topic: Search custom fields  (Read 1784 times)

larynx

  • Guest
Search custom fields
February 14, 2008, 08:36:35 pm
I'm using CiviCRM 1.9 on Drupal 5.7.

How can I use the crm_contact_search function to return all households that have a relationship with a certain user (the currently logged-in user in this case)? If it's not with that function then with which function is it?

Thanks in advance.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Search custom fields
February 15, 2008, 10:26:00 am

1. you might want to use: api/v2/Contact.php and use the function civicrm_contact_search

2. Your best bet is to do the same search from the advanced search and then see the POST values. of that page. You can then pass the same set of values and tweak as needed

sorry we dont know the answer offhand

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

larynx

  • Guest
Re: Search custom fields
February 15, 2008, 10:46:01 am
thank you, I'll do that.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Search custom fields

This forum was archived on 2017-11-26.