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 »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Finding contacts with relationship to members of group
Pages: [1]

Author Topic: Finding contacts with relationship to members of group  (Read 588 times)

jimurl

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 0
  • CiviCRM version: 3.4.6
  • CMS version: drupal 6.22
  • MySQL version: 5+
  • PHP version: 5+
Finding contacts with relationship to members of group
May 16, 2011, 03:48:54 pm
This seems straightforward- but I just can't seem to figure out a good way to do it:

I want to construct a search which pulls up all of the contacts which have a relationship to other contacts, which are all in a certain group. For example:

"Show all the Parents of Students who are in this certain group".  So the parents are not in the group, but their students are.

I have tried the following: 1) using the advanced search; but with this, one only gets to search on the basis of relationship type to a certain individual, (or everybody).

I tried to add a field to a profile which shows a relationship. (i.e.- select for all the children in the group, then show everyone for who relationship = parent for this group) ... no luck.

I also tried the search builder, but this also wasn't able to filter like this. (As an aside: In fact, if I chose (Contact Type of subtype )  --> Parent of ... (operator) [name of contact] , then it appears to return ALL contacts, no matter if they are parents of not, no matter what the operator or operand. - but that's a different issue)

This seems like there would be an easy, simple way to do this, any ideas?

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: Finding contacts with relationship to members of group
May 16, 2011, 04:00:21 pm

You can do this in v3.4 from advanced search. Try it out on the demo:

Choose the option "Display Results as" in the far right corner and then choose "Related Contacts"

This was made possible due to support from VAW (http://www.vawcvs.org/). If you find CiviCRM useful, consider supporting out other MIH projects here:

http://civicrm.org/mih

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

jimurl

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 0
  • CiviCRM version: 3.4.6
  • CMS version: drupal 6.22
  • MySQL version: 5+
  • PHP version: 5+
Re: Finding contacts with relationship to members of group
June 01, 2011, 02:09:29 pm
Thanks Lobo,

Yes, thanks, using version 3.4 works great. "Display results as... related contacts" - and then choosing the relationship type worked great.

I would like to contribute to the MIH tools, but I will need to finda nother way of giving back to the civicrm community than financial- though I will point out to all my clients using civicrm.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Finding contacts with relationship to members of group
June 01, 2011, 03:18:46 pm
Hi,

I'd like to encourage people to consider making small donations to MIHs ($10-$50) when they are not in a possible to make large ones. The small ones really punch above their weight in terms of demonstrating support (although I don't want to discourage the large ones)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Finding contacts with relationship to members of group

This forum was archived on 2017-11-26.