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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Find individual belonging to organizations in a group
Pages: [1]

Author Topic: Find individual belonging to organizations in a group  (Read 966 times)

timfluhr

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
Find individual belonging to organizations in a group
September 09, 2011, 09:21:49 am
Hi.

I have a smart group of organizations that is defined by geography.  The group basically includes all organizations that are in a list of states.  I would like to be able to get a list of all individual contacts employed at these organizations.  I'm not able to figure out how to make this query using the civicrm search functionality.  Does anyone have any ideas?

Thanks!

timfluhr

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
Re: Find individual belonging to organizations in a group
September 09, 2011, 09:46:31 am
It took me an hour but I figured it out.  In Advanced search select the group(s) you want to search, then change the 'Display Results As' dropdown to 'Related Contacts' and 'Employee of'.

Hope this helps someone else.

I've attached a screen.

daveatkins

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 2
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.41
  • PHP version: 5.2.10
Re: Find individual belonging to organizations in a group
February 28, 2012, 01:07:08 pm
This IS very helpful...but now how do I make the resulting search a smart group? When I save the search results as a new smart group and then click on "contacts" for that group, I get a list of organizations. If I edit the criteria, I am once again looking at the full list that I wanted...so why doesn't it save this as the smart group.

I want users to be able to click on "Contacts" next to the name of the smart group "Employees of Member Organizations" and immediately do an export or send a mass mailing.

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: Find individual belonging to organizations in a group
February 28, 2012, 11:55:18 pm

what version are you on?

can u replicate this behavior on the demo server

thanx

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

daveatkins

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 2
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.41
  • PHP version: 5.2.10
Re: Find individual belonging to organizations in a group
February 29, 2012, 08:13:30 am
My version is CiviCRM 3.4.6.

Unfortunately, I was not able to reproduce this on demo; it works: http://drupal.demo.civicrm.org/civicrm/group/search?reset=1&force=1&context=smog&gid=7

another bug (also not happening on demo) is that inactive relationships are included in my smart group results

daveatkins

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 2
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.41
  • PHP version: 5.2.10
Re: Find individual belonging to organizations in a group
February 29, 2012, 08:40:47 am
perhaps an unrelated issue but something that would be helpful in debugging...is there ANY way to edit these smart groups criteria directly? I find it impossible to edit existing smart groups through the web interface--I have no idea what or how to edit and save. It would be much easier to just edit the query directly.

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: Find individual belonging to organizations in a group
February 29, 2012, 09:12:04 am

I think the relationship one might be fixed in 3.4.8 (but as u confirmed for definite in 4.1!)

the other bug has also been fixed in 4.1. Upgrading to 4.1 might be worth it for u, IMO

Not possible to edit smart group criteria currently

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Find individual belonging to organizations in a group

This forum was archived on 2017-11-26.